diff --git a/server/mise.toml b/server/mise.toml index 1462af0c5..aeea1be88 100644 --- a/server/mise.toml +++ b/server/mise.toml @@ -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;'" }