Skip to content

Commit

Permalink
fix: sql
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Jan 9, 2024
1 parent 6626a48 commit 20e10f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions migrations/202401092201_add_events_id_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20e10f5

Please sign in to comment.