From 9a403b84f3bf248ce4c1c043f02f832a4d82acd2 Mon Sep 17 00:00:00 2001 From: Paul Rastoin <45004772+prastoin@users.noreply.github.com> Date: Fri, 10 Apr 2026 15:19:19 +0200 Subject: [PATCH] `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 --- packages/twenty-server/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-server/package.json b/packages/twenty-server/package.json index d7c9daa9b3..da75ed7179 100644 --- a/packages/twenty-server/package.json +++ b/packages/twenty-server/package.json @@ -9,7 +9,7 @@ "start:prod": "node dist/main", "command:prod": "node dist/command/command", "worker:prod": "node dist/queue-worker/queue-worker", - "database:init:prod": "node dist/database/scripts/setup-db.js && yarn database:migrate:prod --force", + "database:init:prod": "node dist/database/scripts/setup-db.js && yarn database:migrate:prod --force --include-slow", "database:migrate:prod": "node dist/command/command run-instance-commands", "clickhouse:migrate:prod": "node dist/database/clickHouse/migrations/run-migrations.js", "typeorm": "../../node_modules/typeorm/.bin/typeorm"