mirror of https://github.com/waku-org/nwaku.git
chore(migrations): move migration scripts to project root
This commit is contained in:
parent
5c4f1ce43f
commit
27a7040f8e
|
@ -1,11 +1,12 @@
|
||||||
{.push raises: [Defect].}
|
{.push raises: [].}
|
||||||
|
|
||||||
import tables, stew/results, strutils, os
|
import
|
||||||
|
std/[tables, os, strutils],
|
||||||
|
stew/results
|
||||||
|
|
||||||
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
template projectRoot: string = currentSourcePath.rsplit(DirSep, 1)[0] / ".." / ".." / ".." / ".." / ".."
|
||||||
const MessageStoreMigrationPath* = sourceDir / "migrations_scripts/message"
|
const MessageStoreMigrationPath* = projectRoot / "migrations" / "message_store"
|
||||||
const PeerStoreMigrationPath* = sourceDir / "migrations_scripts/peer"
|
const PeerStoreMigrationPath* = projectRoot / "migrations" / "peer_store"
|
||||||
const AllStoreMigrationPath* = sourceDir / "migrations_scripts"
|
|
||||||
|
|
||||||
type MigrationScriptsResult*[T] = Result[T, string]
|
type MigrationScriptsResult*[T] = Result[T, string]
|
||||||
type
|
type
|
||||||
|
|
Loading…
Reference in New Issue