Skip to content

Commit

Permalink
why does CI not like this???
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Mar 13, 2024
1 parent aa97973 commit acfdc30
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/backend/migration/20240311000000.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acfdc30

Please sign in to comment.