fix: Prevent upgrade script from running other migrations

This commit is contained in:
Maksim Eltyshev
2025-05-22 16:40:46 +02:00
parent 9fd9370120
commit 777ff467f3
+3 -1
View File
@@ -88,7 +88,9 @@ const upgradeDatabase = async () => {
ALTER TABLE notification SET SCHEMA v1;
`);
await trx.migrate.up();
await trx.migrate.up({
name: '20250228000022_version_2.js',
});
const users = await trx('user_account').withSchema('v1').whereNull('deleted_at');