fix: update MariaDB database import smart query (#792)

This commit is contained in:
Jonathan Fishner
2025-07-27 16:29:16 +03:00
committed by GitHub
parent bda150d4b6
commit 386e40a0bf

View File

@@ -2,7 +2,8 @@ const withExtras = false;
const withDefault = `IFNULL(REPLACE(REPLACE(cols.column_default, '\\\\', ''), '"', 'ֿֿֿ\\"'), '')`;
const withoutDefault = `""`;
export const mariaDBQuery = `SELECT CAST(CONCAT(
export const mariaDBQuery = `SET SESSION group_concat_max_len = 10000000;
SELECT CAST(CONCAT(
'{"fk_info": [',
IFNULL((SELECT GROUP_CONCAT(
CONCAT('{"schema":"', cast(fk.table_schema as CHAR),