mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-24 21:59:23 +00:00
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]
|
||||
const MessageStoreMigrationPath* = sourceDir / "migrations_scripts/message"
|
||||
const PeerStoreMigrationPath* = sourceDir / "migrations_scripts/peer"
|
||||
const AllStoreMigrationPath* = sourceDir / "migrations_scripts"
|
||||
template projectRoot: string = currentSourcePath.rsplit(DirSep, 1)[0] / ".." / ".." / ".." / ".." / ".."
|
||||
const MessageStoreMigrationPath* = projectRoot / "migrations" / "message_store"
|
||||
const PeerStoreMigrationPath* = projectRoot / "migrations" / "peer_store"
|
||||
|
||||
type MigrationScriptsResult*[T] = Result[T, string]
|
||||
type
|
||||
|
Loading…
x
Reference in New Issue
Block a user