From 764f1c3e6cfa590b1e582ebb7463dd2a3cd6242e Mon Sep 17 00:00:00 2001 From: StealWonders <6114858+StealWonders@users.noreply.github.com> Date: Sun, 3 Mar 2024 20:46:51 +0100 Subject: [PATCH] maybe fix --- cmd/mensatt/main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/mensatt/main.go b/cmd/mensatt/main.go index fc185b3..f42b673 100644 --- a/cmd/mensatt/main.go +++ b/cmd/mensatt/main.go @@ -90,9 +90,11 @@ func main() { ctx := context.Background() // todo: run migration tool here in the future - if err := client.Schema.Create(ctx); err != nil { - log.Fatalln("Error creating schema:", err) - } + + // todo: this might delete the database, so be careful!!... uncommented for now!! + //if err := client.Schema.Create(ctx); err != nil { + // log.Fatalln("Error creating schema:", err) + //} if err := seeds.Seed(ctx, client); err != nil { log.Fatalln("Error seeding database:", err)