Skip to content

Commit

Permalink
"Split single db.Exec call into two separate calls"
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed Sep 4, 2024
1 parent 1b84f32 commit f8349d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/dbconfig/dbconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ func Init() error {
log.Fatal(err)
}

// db.Exec(`ALTER TABLE leader_boards DROP COLUMN IF EXISTS users;
// CREATE EXTENSION IF NOT EXISTS "uuid-ossp";`)
// db.Exec(`ALTER TABLE leader_boards DROP COLUMN IF EXISTS users;`)
db.Exec(`CREATE EXTENSION IF NOT EXISTS "uuid-ossp";`)

logwrapper.Log.Info("Congrats ! Automigration completed")

return nil
Expand Down

0 comments on commit f8349d2

Please sign in to comment.