mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
chore: 1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
ALTER TABLE cd_site_info ADD COLUMN ip_sync_auto boolean DEFAULT (0);
|
||||
ALTER TABLE cd_site_info ADD COLUMN ip_sync_auto boolean DEFAULT (1);
|
||||
|
||||
ALTER TABLE pi_pipeline ADD COLUMN webhook_key varchar(100);
|
||||
ALTER TABLE pi_pipeline ADD COLUMN trigger_count integer DEFAULT (0);
|
||||
|
||||
@@ -37,7 +37,9 @@ function transformPG() {
|
||||
let pgSql = sqliteSql.replaceAll(/AUTOINCREMENT/g, 'GENERATED BY DEFAULT AS IDENTITY');
|
||||
pgSql = pgSql.replaceAll(/datetime/g, 'timestamp');
|
||||
pgSql = pgSql.replaceAll(/boolean DEFAULT \(0\)/g, 'boolean DEFAULT (false)');
|
||||
pgSql = pgSql.replaceAll(/boolean DEFAULT \(1\)/g, 'boolean DEFAULT (true)');
|
||||
pgSql = pgSql.replaceAll(/boolean.*NOT NULL DEFAULT \(0\)/g, 'boolean NOT NULL DEFAULT (false)');
|
||||
pgSql = pgSql.replaceAll(/boolean.*NOT NULL DEFAULT \(1\)/g, 'boolean NOT NULL DEFAULT (true)');
|
||||
pgSql = pgSql.replaceAll(/integer/g, 'bigint');
|
||||
pgSql = pgSql.replaceAll(/INTEGER/g, 'bigint');
|
||||
pgSql = pgSql.replaceAll(/last_insert_rowid\(\)/g, 'LASTVAL()');
|
||||
|
||||
Reference in New Issue
Block a user