mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
chore: Fix DB migration for older versions of MySQL (#12328)
This commit is contained in:
parent
50913de265
commit
2f21404987
|
@ -9,7 +9,7 @@ export class AddMockedNodesColumnToTestDefinition1733133775640 implements Revers
|
||||||
const mockedNodesColumnName = escape.columnName('mockedNodes');
|
const mockedNodesColumnName = escape.columnName('mockedNodes');
|
||||||
|
|
||||||
await runQuery(
|
await runQuery(
|
||||||
`ALTER TABLE ${tableName} ADD COLUMN ${mockedNodesColumnName} JSON DEFAULT '[]' NOT NULL`,
|
`ALTER TABLE ${tableName} ADD COLUMN ${mockedNodesColumnName} JSON DEFAULT ('[]') NOT NULL`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue