feat(server): document and guard migration ORDER maintenance (#30997)

feat(server): add a migrations ORDER manifest
This commit is contained in:
bo0tzz
2026-08-26 15:24:59 +02:00
committed by GitHub
parent f264573847
commit a8c79469e5
3 changed files with 10 additions and 0 deletions
+1
View File
@@ -78,4 +78,5 @@ run = [
run = [
{ task = ":ci-unit" },
{ task = ":ci-medium" },
{ task = ":migrations", args = ["verify-order"] },
]
+2
View File
@@ -31,6 +31,8 @@
"migrations:create": "sql-tools -u ${DB_URL:-postgres://postgres:postgres@localhost:5432/immich} migrations create",
"migrations:run": "sql-tools -u ${DB_URL:-postgres://postgres:postgres@localhost:5432/immich} migrations run",
"migrations:revert": "sql-tools -u ${DB_URL:-postgres://postgres:postgres@localhost:5432/immich} migrations revert",
"migrations:sync-order": "sql-tools migrations sync-order",
"migrations:verify-order": "sql-tools migrations verify-order",
"schema:drop": "sql-tools -u ${DB_URL:-postgres://postgres:postgres@localhost:5432/immich} query 'DROP schema public cascade; CREATE schema public;'",
"schema:reset": "pnpm run schema:drop && pnpm run migrations:run",
"email:dev": "email dev -p 3050 --dir src/emails"