Skip to content

Commit

Permalink
Merge branch 'main' into fix/include_orphaned_dataset_lineage
Browse files Browse the repository at this point in the history
  • Loading branch information
wslulciuc authored Dec 12, 2022
2 parents b302008 + b1ff80e commit 95aac6f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- new column will be created with 'null' filled for existing rows
ALTER TABLE lineage_events ADD created_at TIMESTAMP WITH TIME ZONE;

create index lineage_events_created_at_index on lineage_events (created_at desc NULLS LAST);

-- The new default set to UTC now() will only apply in subsequent INSERT or UPDATE commands; it does not cause rows already in the table to change.
ALTER TABLE lineage_events ALTER COLUMN created_at SET DEFAULT (now() AT TIME ZONE 'UTC')::timestamptz;

0 comments on commit 95aac6f

Please sign in to comment.