fix(server): point the migrations mise task at sql-tools (#30996)

This commit is contained in:
bo0tzz
2026-08-26 15:24:59 +02:00
committed by GitHub
parent 13562d80a4
commit f264573847
+3 -2
View File
@@ -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;'" }