Skip to content

Commit

Permalink
tested a different way of formatting the migration
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Mar 13, 2024
1 parent 9b2e6e0 commit fa65794
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/backend/migration/20240311000000.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa65794

Please sign in to comment.