Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: add idx on project_id for table db (#3874)
p0ny331153a57fe7
diff --git a/store/migration/dev/20221214000000##add_idx_db_project_id.sql b/store/migration/dev/20221214000000##add_idx_db_project_id.sqlnew file mode 100644index 0000000000..469ff38757--- /dev/null+++ b/store/migration/dev/20221214000000##add_idx_db_project_id.sql@@ -0,0 +1 @@+CREATE INDEX idx_db_project_id ON db(project_id);diff --git a/store/migration/dev/LATEST.sql b/store/migration/dev/LATEST.sqlindex 371788cd1f..c062861e41 100644--- a/store/migration/dev/LATEST.sql+++ b/store/migration/dev/LATEST.sql@@ -338,6 +338,8 @@ CREATE INDEX idx_db_instance_id ON db(instance_id);CREATE UNIQUE INDEX idx_db_unique_instance_id_name ON db(instance_id, name);+CREATE INDEX idx_db_project_id ON db(project_id);+ALTER SEQUENCE db_id_seq RESTART WITH 101;CREATE TRIGGER update_db_updated_ts