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
parent
4911f37fe5
commit
61409f062c
|
@ -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);
|
|
@ -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);
|
Loading…
Reference in New Issue