From 20e10f5ee6910eaffd9b35d83de7a760898106a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Tue, 9 Jan 2024 23:30:32 +0000 Subject: [PATCH] fix: sql --- migrations/202401092201_add_events_id_index.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/migrations/202401092201_add_events_id_index.go b/migrations/202401092201_add_events_id_index.go index 21a8842d..8458e107 100644 --- a/migrations/202401092201_add_events_id_index.go +++ b/migrations/202401092201_add_events_id_index.go @@ -9,11 +9,7 @@ import ( var _202401092201_add_events_id_index = &gormigrate.Migration{ ID: "202401092201_add_events_id_index", Migrate: func(tx *gorm.DB) error { - - var sql string - sql = "CREATE INDEX idx_nostr_events_app_id_and_id ON nostr_events(app_id, id)" - - return tx.Exec(sql).Error + return tx.Exec("CREATE INDEX idx_nostr_events_app_id_and_id ON nostr_events(app_id, id)").Error }, Rollback: func(tx *gorm.DB) error { return nil