Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: add environment order CHECK, order must >= 0 (#726)
tianzhoua847a5728bcd
diff --git a/store/migration/10001__init_schema.sql b/store/migration/10001__init_schema.sqlindex 5e5b744d74..3b88eaab6a 100644--- a/store/migration/10001__init_schema.sql+++ b/store/migration/10001__init_schema.sql@@ -112,7 +112,7 @@ CREATE TABLE environment (updater_id INTEGER NOT NULL REFERENCES principal (id),updated_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),name TEXT NOT NULL,- "order" INTEGER NOT NULL+ "order" INTEGER NOT NULL CHECK ("order" >= 0));CREATE UNIQUE INDEX idx_environment_unique_name ON environment(name);