mirror of https://github.com/certd/certd
Merge remote-tracking branch 'origin/v2-dev' into v2-dev
commit
46b87250b2
|
@ -91,7 +91,7 @@ export class SysSettingsService extends BaseService<SysSettingsEntity> {
|
||||||
entity.setting = JSON.stringify(bean);
|
entity.setting = JSON.stringify(bean);
|
||||||
entity.access = type.__access__;
|
entity.access = type.__access__;
|
||||||
|
|
||||||
if (key === SysSecretBackup.__key__ || key === SysSecret.__key__) {
|
if (key === SysSecretBackup.__key__) {
|
||||||
//备份密钥不允许更新
|
//备份密钥不允许更新
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,8 @@ function transformMysql() {
|
||||||
pgSql = pgSql.replaceAll(/DEFAULT \(([^)]*)\)/g, 'DEFAULT $1');
|
pgSql = pgSql.replaceAll(/DEFAULT \(([^)]*)\)/g, 'DEFAULT $1');
|
||||||
pgSql = pgSql.replaceAll(/integer/g, 'bigint');
|
pgSql = pgSql.replaceAll(/integer/g, 'bigint');
|
||||||
pgSql = pgSql.replaceAll(/last_insert_rowid\(\)/g, 'LAST_INSERT_ID()');
|
pgSql = pgSql.replaceAll(/last_insert_rowid\(\)/g, 'LAST_INSERT_ID()');
|
||||||
|
//text 改成longtext
|
||||||
|
pgSql = pgSql.replaceAll(/text/g, 'longtext');
|
||||||
//双引号 替换成反引号
|
//双引号 替换成反引号
|
||||||
pgSql = pgSql.replaceAll(/"/g, '`');
|
pgSql = pgSql.replaceAll(/"/g, '`');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue