feat: add file move and trash retention
All checks were successful
CI / hygiene (push) Successful in 2s
Build and Deploy / build-and-deploy (push) Successful in 30s
CI / test (push) Successful in 19s

This commit is contained in:
Grendgi
2026-06-16 14:40:28 +03:00
parent 2723f20ab0
commit 3de4e5dfe7
7 changed files with 176 additions and 13 deletions

View File

@@ -0,0 +1,5 @@
DROP INDEX IF EXISTS files_nodes_purge_after_idx;
ALTER TABLE files_nodes
DROP COLUMN IF EXISTS purge_after,
DROP COLUMN IF EXISTS trashed_at;

View 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;