feat(package): migrator: ! migration up

This commit is contained in:
2025-11-14 15:50:55 +00:00
parent 6ca49bbdd1
commit e162de4471
11 changed files with 126 additions and 12 deletions
+4
View File
@@ -40,5 +40,9 @@
${builtins.readFile self.legacyPackages.${system}.helpers.posix-shell.log}
test=${testDrv}
${builtins.readFile ./lauch.sh}
# success marker for Nix
# shellcheck disable=SC2154
mkdir -p "$out"
'';
in lib.mapAttrs (name: drv: mkPgTest name drv) testDrvs
@@ -0,0 +1 @@
ALTER TABLE profile ADD COLUMN info TEXT;
@@ -0,0 +1,6 @@
psql "$DATABASE_URL" 'CREATE TABLE profile (
id INTEGER,
username TEXT
)'
#migrator migrate to 20251104192425-add-info-to-profile
@@ -0,0 +1 @@
migrator list