Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add issue(created_ts) index to support order by created_ts DESC query

天舟30e1bc565784
diff --git a/store/migration/10001__init_schema.sql b/store/migration/10001__init_schema.sql
index eef75e49a7..94fbcfe5ba 100644
--- a/store/migration/10001__init_schema.sql
+++ b/store/migration/10001__init_schema.sql
@@ -701,6 +701,8 @@ CREATE INDEX idx_issue_creator_id ON issue(creator_id);
CREATE INDEX idx_issue_assignee_id ON issue(assignee_id);
+CREATE INDEX idx_issue_created_ts ON issue(created_ts);
+
INSERT INTO
sqlite_sequence (name, seq)
VALUES