chore(migrations): move migration scripts to project root

This commit is contained in:
Lorenzo Delgado 2022-11-03 17:58:05 +01:00 committed by GitHub
parent 5c4f1ce43f
commit 27a7040f8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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] 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