Skip to content

Commit

Permalink
[CR] Place comment on column rather than in source
Browse files Browse the repository at this point in the history
Allows schema exploration tools to see the comment.  This will
hopefully make online exploration of databases at different revisions
easier.


Former-commit-id: f82623cd4ad97201f3f664481b6b5b11f2576f67
  • Loading branch information
arielshaqed committed Aug 9, 2020
1 parent c10905d commit 28b64d7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ddl/000002_retention.up.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
-- Set before deleting an object to indicate it is going to be
-- removed by an AWS S3 batch operation and cannot be used for new
-- dedupes.
ALTER TABLE catalog_object_dedup
DROP CONSTRAINT IF EXISTS catalog_object_dedup_pk,
ADD COLUMN IF NOT EXISTS deleting boolean DEFAULT false NOT NULL,
ADD CONSTRAINT catalog_object_dedup_pk PRIMARY KEY (repository_id, dedup_id, deleting);

COMMENT ON COLUMN catalog_object_dedup.deleting IS $$
Set before deleting an object to indicate it is going to be
removed by an AWS S3 batch operation and cannot be used for new
dedupes.
$$;

0 comments on commit 28b64d7

Please sign in to comment.