feat(package): migrator: ! migration up
This commit is contained in:
@@ -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;
|
||||
6
test/package/migrator/test/migrate-up/run.sh
Normal file
6
test/package/migrator/test/migrate-up/run.sh
Normal file
@@ -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 @@
|
||||
-- nothing
|
||||
@@ -0,0 +1 @@
|
||||
-- nothing
|
||||
@@ -0,0 +1 @@
|
||||
-- nothing
|
||||
@@ -0,0 +1 @@
|
||||
-- nothing
|
||||
@@ -0,0 +1 @@
|
||||
-- nothing
|
||||
@@ -0,0 +1 @@
|
||||
-- nothing
|
||||
1
test/package/migrator/test/migrations-list/run.sh
Normal file
1
test/package/migrator/test/migrations-list/run.sh
Normal file
@@ -0,0 +1 @@
|
||||
migrator list
|
||||
Reference in New Issue
Block a user