Skip to content

Commit

Permalink
fix: restore food.eaten_at
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevries3133 committed Aug 24, 2024
1 parent 38695e5 commit 82a774a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions migrations/28_restore_food.eaten_at.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
alter table food add column eaten_at timestamp with time zone;

insert into food (id, eaten_at)
select food_id, eaten_at from food_eaten_event
on conflict (id) do update set eaten_at = EXCLUDED.eaten_at;

alter table food alter column eaten_at set not null;

0 comments on commit 82a774a

Please sign in to comment.