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