diff --git a/packages/twenty-server/project.json b/packages/twenty-server/project.json index 6b351eb5ce..f5a20abebf 100644 --- a/packages/twenty-server/project.json +++ b/packages/twenty-server/project.json @@ -202,6 +202,18 @@ "command": "node dist/command/command.js run-instance-commands --force" } }, + "database:init": { + "executor": "nx:run-commands", + "dependsOn": ["build"], + "options": { + "cwd": "packages/twenty-server", + "commands": [ + "node dist/database/scripts/setup-db.js", + "nx database:migrate -- --include-slow" + ], + "parallel": false + } + }, "database:migrate:generate": { "executor": "nx:run-commands", "dependsOn": ["build"], @@ -228,8 +240,7 @@ "cwd": "packages/twenty-server", "commands": [ "node dist/database/scripts/truncate-db.js", - "node dist/database/scripts/setup-db.js", - "nx database:migrate", + "nx database:init", "nx command-no-deps -- cache:flush" ], "parallel": false @@ -238,8 +249,7 @@ "cwd": "packages/twenty-server", "commands": [ "node dist/database/scripts/truncate-db.js", - "node dist/database/scripts/setup-db.js", - "nx database:migrate", + "nx database:init", "nx command-no-deps -- cache:flush", "nx command-no-deps -- workspace:seed:dev" ],