[MM-53291] Data retention improvements (#24253)
* adding new migration for RetentionIdsForDeletion, changing logic for deleting orphaned reactions. Updating delete user and channel endpoints to remove respective reactions
Этот коммит содержится в:
@@ -0,0 +1,3 @@
|
||||
DROP INDEX IF EXISTS idx_retentionidsfordeletion_tablename;
|
||||
|
||||
DROP TABLE IF EXISTS retentionidsfordeletion;
|
||||
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS retentionidsfordeletion (
|
||||
id varchar(26) PRIMARY KEY,
|
||||
tablename varchar(64),
|
||||
ids varchar(26)[]
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_retentionidsfordeletion_tablename ON retentionidsfordeletion (tablename);
|
||||
Ссылка в новой задаче
Block a user