Skip to content

Commit

Permalink
Merge pull request #81 from navikt/arena_data_created_at
Browse files Browse the repository at this point in the history
Split into two statements to avoid setting created for existing rows
  • Loading branch information
tu55eladd authored Nov 15, 2023
2 parents eb39bfb + db377d0 commit eb3defc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/db/migration/V16__arena_data_created.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE arena_data
ADD COLUMN created_at timestamptz DEFAULT NULL;
ALTER TABLE arena_data
ALTER COLUMN created_at SET DEFAULT NOW();

0 comments on commit eb3defc

Please sign in to comment.