From e0ad186eb20a2501fb1bea6ead189347da4006e0 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 13 Mar 2024 21:38:54 +0100 Subject: [PATCH] why does CI not like this??? --- server/backend/migration/20240311000000.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/backend/migration/20240311000000.go b/server/backend/migration/20240311000000.go index add5f9a9..31271b9b 100644 --- a/server/backend/migration/20240311000000.go +++ b/server/backend/migration/20240311000000.go @@ -13,10 +13,7 @@ func migrate20240311000000() *gormigrate.Migration { ID: "20240311000000", Migrate: func(tx *gorm.DB) error { // make sure that dish_rating is FK-bound to dish - if err := tx.Exec(`alter table dish_rating - add constraint dish_rating_dish_dish_fk - foreign key (dishID) references dish (dish) - on update cascade on delete cascade`).Error; err != nil { + if err := tx.Exec("alter table dish_rating add constraint dish_rating_dish_dish_fk foreign key (dishID) references dish (dish) on update cascade on delete cascade").Error; err != nil { return err } // because dishes already have a cafeteria, storing this again is not necessary