feat: add file move and trash retention
This commit is contained in:
7
migrations/003_trash_retention.up.sql
Normal file
7
migrations/003_trash_retention.up.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE files_nodes
|
||||
ADD COLUMN IF NOT EXISTS trashed_at TIMESTAMPTZ,
|
||||
ADD COLUMN IF NOT EXISTS purge_after TIMESTAMPTZ;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS files_nodes_purge_after_idx
|
||||
ON files_nodes(purge_after)
|
||||
WHERE purge_after IS NOT NULL;
|
||||
Reference in New Issue
Block a user