Skip to content

Commit

Permalink
fix: database migrate init DB
Browse files Browse the repository at this point in the history
  • Loading branch information
pupilcc committed Sep 27, 2024
1 parent 08dcd3a commit 3fbce44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/database/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func AutoMigrate() {
client := Init()
client := initDB()
if err := client.Schema.Create(context.Background()); err != nil {
log.Fatalf("failed creating schema resources: %v", err)
}
Expand Down

0 comments on commit 3fbce44

Please sign in to comment.