mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-04 06:53:12 +00:00
chore(migrations): move migration scripts to project root
This commit is contained in:
parent
816f31091e
commit
4891584cbd
@ -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…
x
Reference in New Issue
Block a user