Skip to content

Commit

Permalink
Comment out SQL migrations-related code
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Jan 22, 2025
1 parent ce035a8 commit 87a3d6d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package db
import (
"database/sql"
"fmt"
"log"

_ "github.com/go-sql-driver/mysql"
)
Expand All @@ -40,7 +39,7 @@ func Init(username, password, protocol, address, database string) error {
handle.SetMaxOpenConns(conns)
handle.SetMaxIdleConns(conns)

tx, err := handle.Begin()
/*tx, err := handle.Begin()
if err != nil {
log.Fatal(err)
}
Expand All @@ -54,12 +53,12 @@ func Init(username, password, protocol, address, database string) error {
err = tx.Commit()
if err != nil {
log.Fatal(err)
}
}*/

return nil
}

func setupDb(tx *sql.Tx) error {
/*func setupDb(tx *sql.Tx) error {
queries := []string{
// MIGRATION 000
Expand Down Expand Up @@ -123,4 +122,4 @@ func setupDb(tx *sql.Tx) error {
}
return nil
}
}*/

0 comments on commit 87a3d6d

Please sign in to comment.