Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Add UNIQUE(workspace_id, principal_id) to member table
天舟b964dd68135e
diff --git a/backend/store/migration/0001_init_schema.up.sql b/backend/store/migration/0001_init_schema.up.sqlindex 448c157de8..1e24b2aa41 100644--- a/backend/store/migration/0001_init_schema.up.sql+++ b/backend/store/migration/0001_init_schema.up.sql@@ -115,7 +115,8 @@ CREATE TABLE member (`role` TEXT NOT NULL CHECK (`role` IN ('OWNER', 'DBA', 'DEVELOPER')),- principal_id INTEGER NOT NULL REFERENCES principal (id)+ principal_id INTEGER NOT NULL REFERENCES principal (id),+ UNIQUE(workspace_id, principal_id));INSERT INTO