deploy: 41900b74f86b7f31db37e4154a30837f6fbf3cbd

This commit is contained in:
LNSD 2022-11-03 17:31:25 +00:00
parent c4a853ea6f
commit e554f5a33b
9 changed files with 7 additions and 6 deletions

View File

@ -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