fix(server): point the migrations mise task at sql-tools (#30996)
This commit is contained in:
+3
-2
@@ -39,8 +39,9 @@ run = "node ./dist/bin/sync-sql.js"
|
||||
run = "node ./dist/bin/sync-open-api.js"
|
||||
|
||||
[tasks.migrations]
|
||||
run = "node ./dist/bin/migrations.js"
|
||||
description = "Run database migration commands (create, generate, run, debug, or query)"
|
||||
env._.path = "./node_modules/.bin"
|
||||
run = "sql-tools -u ${DB_URL:-postgres://postgres:postgres@localhost:5432/immich} migrations"
|
||||
description = "Run database migration commands (create, generate, run, sync-order, verify-order, ...)"
|
||||
|
||||
[tasks."schema-drop"]
|
||||
run = { task = "migrations query 'DROP schema public cascade; CREATE schema public;'" }
|
||||
|
||||
Reference in New Issue
Block a user