We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ef98a commit 3ebdb1aCopy full SHA for 3ebdb1a
1 file changed
config/migrate.js
@@ -99,8 +99,10 @@ export async function migrate() {
99
try {
100
await query(c.sql);
101
console.log(`Applied constraint: ${c.name}`);
102
- } catch {
103
- // Constraint already exists or table missing — safe to ignore
+ } catch (err) {
+ if (process.env.NODE_ENV !== 'production') {
104
+ console.log(`Skipped constraint ${c.name}: ${err.message}`);
105
+ }
106
}
107
108
0 commit comments