Skip to content

Commit 5a22cc8

Browse files
authored
database:reset depends on database:init that runs slow instance commands (#19557)
```ts Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] LogicFunctionModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] ApplicationUpgradeModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] IteratorActionModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] DelayActionModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] RestApiCoreModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] RecordCRUDActionModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] WorkflowTriggerModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] TimelineMessagingModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] WorkflowVersionModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] UserModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] WorkflowToolsModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] ApplicationOAuthModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] BillingWebhookModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] AiAgentExecutionModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] AiAgentActionModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] ToolProviderModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] AiAgentMonitorModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] WorkflowExecutorModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] WorkflowRunnerModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] McpModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] AiChatModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] WorkflowApiModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [InstanceLoader] AuthModule dependencies initialized [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [DatabaseConfigDriver] [INIT] Loading initial config variables from database [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [DatabaseConfigDriver] [INIT] Config variables loaded: 1 values found in DB, 83 falling to env vars/defaults [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [UpgradeCommandRegistryService] Registered 3 fast instance, 0 slow instance, and 14 workspace command(s) for 1.21.0 [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [UpgradeCommandRegistryService] Registered 4 fast instance, 1 slow instance, and 3 workspace command(s) for 1.22.0 [Nest] 46347 - 04/10/2026, 3:37:43 PM LOG [GenerateInstanceCommandCommand] Generating fast instance command for version 1.22.0... [Nest] 46347 - 04/10/2026, 3:37:43 PM WARN [GenerateInstanceCommandCommand] No changes in database schema were found - cannot generate a migration. ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— NX Successfully ran target database:migrate:generate for project twenty-server and 8 tasks it depends on (11s) With additional flags: --name=martmull ```
1 parent 9a403b8 commit 5a22cc8

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

packages/twenty-server/project.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,18 @@
202202
"command": "node dist/command/command.js run-instance-commands --force"
203203
}
204204
},
205+
"database:init": {
206+
"executor": "nx:run-commands",
207+
"dependsOn": ["build"],
208+
"options": {
209+
"cwd": "packages/twenty-server",
210+
"commands": [
211+
"node dist/database/scripts/setup-db.js",
212+
"nx database:migrate -- --include-slow"
213+
],
214+
"parallel": false
215+
}
216+
},
205217
"database:migrate:generate": {
206218
"executor": "nx:run-commands",
207219
"dependsOn": ["build"],
@@ -228,8 +240,7 @@
228240
"cwd": "packages/twenty-server",
229241
"commands": [
230242
"node dist/database/scripts/truncate-db.js",
231-
"node dist/database/scripts/setup-db.js",
232-
"nx database:migrate",
243+
"nx database:init",
233244
"nx command-no-deps -- cache:flush"
234245
],
235246
"parallel": false
@@ -238,8 +249,7 @@
238249
"cwd": "packages/twenty-server",
239250
"commands": [
240251
"node dist/database/scripts/truncate-db.js",
241-
"node dist/database/scripts/setup-db.js",
242-
"nx database:migrate",
252+
"nx database:init",
243253
"nx command-no-deps -- cache:flush",
244254
"nx command-no-deps -- workspace:seed:dev"
245255
],

0 commit comments

Comments
 (0)