refactor(catalog): soft delete namespace column

Adds a "deleted_at" column that will indicate the timestamp at which is
was marked as logically deleted.
pull/24376/head
Dom Dwyer 2023-02-09 11:24:41 +01:00
parent 4911f37fe5
commit 61409f062c
No known key found for this signature in database
GPG Key ID: E4C40DBD9157879A
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);