Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Disallow wildcard for backup setting hour.
spinningboted86ecc6dfb1
diff --git a/store/migration/10001__init_schema.sql b/store/migration/10001__init_schema.sqlindex a8487dba6d..d013549756 100644--- a/store/migration/10001__init_schema.sql+++ b/store/migration/10001__init_schema.sql@@ -643,11 +643,11 @@ CREATE TABLE backup_setting (updated_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),database_id INTEGER NOT NULL UNIQUE REFERENCES db (id),`enabled` INTEGER NOT NULL CHECK (`enabled` IN (0, 1)),- -- hour and day_of_week can be -1 which is unset.hour INTEGER NOT NULL CHECK (- -1 <= hour+ 0 <= hourAND hour < 24),+ -- day_of_week can be -1 which is wildcard (daily automatic backup).day_of_week INTEGER NOT NULL CHECK (-1 <= day_of_weekAND day_of_week < 7