Merge pull request #6924 from influxdata/dom/soft-delete-namespaces

refactor(catalog): soft delete namespace column
pull/24376/head
Dom 2023-02-09 13:50:55 +00:00 committed by GitHub
commit 00fd545a18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
-- Add a soft-deletion timestamp to the "namespace" table.
--
-- <https://github.com/influxdata/influxdb_iox/issues/6492>
ALTER TABLE
namespace
ADD
COLUMN deleted_at BIGINT DEFAULT NULL;
CREATE INDEX namespace_deleted_at_idx ON namespace (deleted_at);

View File

@ -0,0 +1,9 @@
-- Add a soft-deletion timestamp to the "namespace" table.
--
-- <https://github.com/influxdata/influxdb_iox/issues/6492>
ALTER TABLE
namespace
ADD
COLUMN deleted_at numeric DEFAULT NULL;
CREATE INDEX namespace_deleted_at_idx ON namespace (deleted_at);