Skip to content

Commit

Permalink
populate default values in lineage_events.created_at column
Browse files Browse the repository at this point in the history
Signed-off-by: Prachi Mishra <[email protected]>
  • Loading branch information
prachim-collab committed Dec 9, 2022
1 parent 69ef361 commit 4897ff1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ALTER TABLE lineage_events ADD created_at TIMESTAMP;

create index lineage_events_created_at_index on lineage_events (created_at desc);

UPDATE lineage_events
SET created_at = (event_time AT TIME ZONE 'UTC')::timestamp;

ALTER TABLE lineage_events ALTER COLUMN created_at SET DEFAULT (now() AT TIME ZONE 'UTC');

0 comments on commit 4897ff1

Please sign in to comment.