Skip to content

Commit 9a403b8

Browse files
authored
database:init:prod triggers instance slow command too (#19555)
When creating a db from scrath we still need to run the slow instance command so the associated queries are still applied to the empty db Please note that by default if there's no workspace the instance slow runner will skip the runDataMigration part
1 parent a82d078 commit 9a403b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/twenty-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start:prod": "node dist/main",
1010
"command:prod": "node dist/command/command",
1111
"worker:prod": "node dist/queue-worker/queue-worker",
12-
"database:init:prod": "node dist/database/scripts/setup-db.js && yarn database:migrate:prod --force",
12+
"database:init:prod": "node dist/database/scripts/setup-db.js && yarn database:migrate:prod --force --include-slow",
1313
"database:migrate:prod": "node dist/command/command run-instance-commands",
1414
"clickhouse:migrate:prod": "node dist/database/clickHouse/migrations/run-migrations.js",
1515
"typeorm": "../../node_modules/typeorm/.bin/typeorm"

0 commit comments

Comments
 (0)