chore: db transform text改成longtext

This commit is contained in:
xiaojunnuo
2025-01-06 09:39:44 +08:00
parent 5cef28c5bd
commit 7b4f8d31e8

View File

@@ -67,7 +67,8 @@ function transformMysql() {
pgSql = pgSql.replaceAll(/DEFAULT \(([^)]*)\)/g, 'DEFAULT $1');
pgSql = pgSql.replaceAll(/integer/g, 'bigint');
pgSql = pgSql.replaceAll(/last_insert_rowid\(\)/g, 'LAST_INSERT_ID()');
//text 改成longtext
pgSql = pgSql.replaceAll(/text/g, 'longtext');
//双引号 替换成反引号
pgSql = pgSql.replaceAll(/"/g, '`');