Skip to content

Commit

Permalink
fix db
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Dec 24, 2023
1 parent b963535 commit 796cb7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connection/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ func ConnectMySQL() *sql.DB {
log.Println(fmt.Sprintf("[connection] connected to mysql server (host: %s)", viper.GetString("mysql.host")))
}

InitRootUser(db)

CreateUserTable(db)
CreateConversationTable(db)
CreateSharingTable(db)
Expand Down Expand Up @@ -91,6 +89,8 @@ func CreateUserTable(db *sql.DB) {
if err != nil {
fmt.Println(err)
}

InitRootUser(db)
}

func CreatePackageTable(db *sql.DB) {
Expand Down

0 comments on commit 796cb7b

Please sign in to comment.