From 0aa16c7c9708dfe367567f1fb4696ea073ce1bfd Mon Sep 17 00:00:00 2001 From: Eugene Molodkin Date: Fri, 20 Dec 2024 11:52:05 +0100 Subject: [PATCH] chore: Fix DB migration for older versions of MySQL --- .../1733133775640-AddMockedNodesColumnToTestDefinition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/databases/migrations/common/1733133775640-AddMockedNodesColumnToTestDefinition.ts b/packages/cli/src/databases/migrations/common/1733133775640-AddMockedNodesColumnToTestDefinition.ts index 09ce45722c028..53f650ebcf9ca 100644 --- a/packages/cli/src/databases/migrations/common/1733133775640-AddMockedNodesColumnToTestDefinition.ts +++ b/packages/cli/src/databases/migrations/common/1733133775640-AddMockedNodesColumnToTestDefinition.ts @@ -9,7 +9,7 @@ export class AddMockedNodesColumnToTestDefinition1733133775640 implements Revers const mockedNodesColumnName = escape.columnName('mockedNodes'); await runQuery( - `ALTER TABLE ${tableName} ADD COLUMN ${mockedNodesColumnName} JSON DEFAULT '[]' NOT NULL`, + `ALTER TABLE ${tableName} ADD COLUMN ${mockedNodesColumnName} JSON DEFAULT ('[]') NOT NULL`, ); }