mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-24 19:38:24 +00:00
Use a minimum age of items to remove
In order to keep deleted items for a while, the periodic task can now use a duration to only remove items with a certain age. This can be used to ensure that a deleted item stays at least X days before it will be removed from the database. Refs: #347
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
ALTER TABLE "empty_trash_setting"
|
||||
ADD COLUMN "min_age" bigint;
|
||||
|
||||
UPDATE "empty_trash_setting"
|
||||
SET "min_age" = 604800000;
|
||||
|
||||
ALTER TABLE "empty_trash_setting"
|
||||
ALTER COLUMN "min_age" SET NOT NULL;
|
@ -0,0 +1,8 @@
|
||||
ALTER TABLE `empty_trash_setting`
|
||||
ADD COLUMN (`min_age` bigint);
|
||||
|
||||
UPDATE `empty_trash_setting`
|
||||
SET `min_age` = 604800000;
|
||||
|
||||
ALTER TABLE `empty_trash_setting`
|
||||
MODIFY `min_age` bigint NOT NULL;
|
@ -0,0 +1,8 @@
|
||||
ALTER TABLE "empty_trash_setting"
|
||||
ADD COLUMN "min_age" bigint;
|
||||
|
||||
UPDATE "empty_trash_setting"
|
||||
SET "min_age" = 604800000;
|
||||
|
||||
ALTER TABLE "empty_trash_setting"
|
||||
ALTER COLUMN "min_age" SET NOT NULL;
|
Reference in New Issue
Block a user