fix remove unncessary indexes on webhooks table

This commit is contained in:
Abhinav Raut
2025-06-15 13:10:19 +05:30
parent 147180a536
commit 88d719ec4f
2 changed files with 0 additions and 3 deletions

View File

@@ -48,7 +48,6 @@ func V0_7_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf) error {
CONSTRAINT constraint_webhooks_on_secret CHECK (length(secret) <= 255),
CONSTRAINT constraint_webhooks_on_events_not_empty CHECK (array_length(events, 1) > 0)
);
CREATE INDEX IF NOT EXISTS index_webhooks_on_is_active ON webhooks (is_active);
`)
if err != nil {
return err

View File

@@ -594,8 +594,6 @@ CREATE TABLE webhooks (
CONSTRAINT constraint_webhooks_on_secret CHECK (length(secret) <= 255),
CONSTRAINT constraint_webhooks_on_events_not_empty CHECK (array_length(events, 1) > 0)
);
CREATE INDEX index_webhooks_on_created_at ON webhooks (created_at);
CREATE INDEX index_webhooks_on_events ON webhooks USING GIN (events);
INSERT INTO ai_providers
("name", provider, config, is_default)