Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Environment name unique constraint should include workspace_id
天舟2da3d69c9369
diff --git a/backend/store/migration/0001_init_schema.up.sql b/backend/store/migration/0001_init_schema.up.sqlindex d03c2c6e1b..8a50f7eb77 100644--- a/backend/store/migration/0001_init_schema.up.sql+++ b/backend/store/migration/0001_init_schema.up.sql@@ -153,8 +153,9 @@ CREATE TABLE environment (created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),updater_id INTEGER NOT NULL REFERENCES principal (id),updated_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),- name TEXT NOT NULL UNIQUE,- `order` INTEGER NOT NULL+ name TEXT NOT NULL,+ `order` INTEGER NOT NULL,+ UNIQUE(workspace_id, name));INSERT INTO