From aa97973f05ea66cf1cadfafeeee0c10e9c840b8f Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 13 Mar 2024 21:32:34 +0100 Subject: [PATCH] tested a different way of formatting the migration --- server/backend/migration/20240311000000.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/backend/migration/20240311000000.go b/server/backend/migration/20240311000000.go index 6f421530..add5f9a9 100644 --- a/server/backend/migration/20240311000000.go +++ b/server/backend/migration/20240311000000.go @@ -16,8 +16,7 @@ func migrate20240311000000() *gormigrate.Migration { 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 { + on update cascade on delete cascade`).Error; err != nil { return err } // because dishes already have a cafeteria, storing this again is not necessary