chore: db transform text改成longtext

v2
xiaojunnuo 2025-01-06 09:39:44 +08:00
parent 5cef28c5bd
commit 7b4f8d31e8
1 changed files with 2 additions and 1 deletions

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, '`');