store: remove redundant index

This commit is contained in:
Tulir Asokan
2025-12-05 23:45:41 +02:00
parent 9b2b691afd
commit ef23946cbc
2 changed files with 3 additions and 3 deletions
+1 -3
View File
@@ -1,4 +1,4 @@
-- v0 -> v4 (compatible with v2+): Latest revision
-- v0 -> v5 (compatible with v2+): Latest revision
CREATE TABLE telegram_user_state (
user_id BIGINT NOT NULL PRIMARY KEY,
@@ -16,8 +16,6 @@ CREATE TABLE telegram_channel_state (
PRIMARY KEY (user_id, channel_id)
);
CREATE INDEX telegram_channel_state_user_id_idx ON telegram_channel_state (user_id);
CREATE TABLE telegram_access_hash (
user_id BIGINT NOT NULL,
entity_type TEXT NOT NULL,
@@ -0,0 +1,2 @@
-- v5 (compatible with v2+): Remove redundant index on telegram_channel_state
DROP INDEX telegram_channel_state_user_id_idx;