fix: minor things before merging new order keys

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-02 19:03:34 +01:00
parent 7c387bb6ae
commit 25e3a84bf6
7 changed files with 42 additions and 48 deletions

View File

@@ -10,6 +10,7 @@ import {
getIsCluster,
getIsDry,
getIsSelfHosting,
getShouldIgnoreRecord,
printBoxMessage,
} from './helpers';
@@ -55,8 +56,8 @@ async function migrate() {
]);
if (!getIsSelfHosting()) {
printBoxMessage('🕒 Migrations starts in 10 seconds', []);
if (!getIsDry()) {
printBoxMessage('🕒 Migrations starts in 10 seconds', []);
await new Promise((resolve) => setTimeout(resolve, 10000));
}
}
@@ -83,7 +84,7 @@ async function runMigration(migrationsDir: string, file: string) {
try {
const migration = await import(path.join(migrationsDir, file));
await migration.up();
if (!getIsDry()) {
if (!getIsDry() && !getShouldIgnoreRecord()) {
await db.codeMigration.upsert({
where: {
name: file,