Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
data_source unique key should use database_id, instead of instance_id
天舟bf0d71c04005
diff --git a/backend/store/migration/0001_init_schema.up.sql b/backend/store/migration/0001_init_schema.up.sqlindex c83c1a5719..f1e95ffd43 100644--- a/backend/store/migration/0001_init_schema.up.sql+++ b/backend/store/migration/0001_init_schema.up.sql@@ -358,7 +358,7 @@ CREATE TABLE data_source (`type` TEXT NOT NULL CHECK (TYPE IN ('ADMIN', 'RW', 'RO')),username TEXT NOT NULL,`password` TEXT NOT NULL,- UNIQUE(workspace_id, instance_id, name)+ UNIQUE(workspace_id, database_id, name));INSERT INTO