feat(server): document and guard migration ORDER maintenance (#30997)
feat(server): add a migrations ORDER manifest
This commit is contained in:
@@ -78,4 +78,5 @@ run = [
|
||||
run = [
|
||||
{ task = ":ci-unit" },
|
||||
{ task = ":ci-medium" },
|
||||
{ task = ":migrations", args = ["verify-order"] },
|
||||
]
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user