7bb18b17dc
config.example.py: Add min & max expiration + description
2022-11-28 17:09:18 -05:00
b6833b6e51
Merge remote-tracking branch 'mia/master' into expiration
2022-11-28 17:05:40 -05:00
11cfd07d71
prune: Stream expired files from the database
...
(as opposed to collecting them all first)
2022-11-28 16:49:09 -05:00
60db7938c8
Remove vestigial database model
...
#72 (comment)
2022-11-28 16:43:34 -05:00
55ee3740b0
Coalesce updates to the database during migration
...
#72 (comment)
2022-11-28 16:28:22 -05:00
19d989b696
More efficiently filter to unexpired files when migrating
...
#72 (comment)
2022-11-28 16:24:39 -05:00
74b6f986ee
Remove vestigial warning about legacy files
2022-11-28 16:21:03 -05:00
64ddfdb702
Don't crash when upgrading a fresh database
2022-11-28 16:20:43 -05:00
39d24e56c3
Remove vestigial touch()
2022-11-28 16:18:16 -05:00
d14713d077
Use automap in place of an explicit file map in migration
2022-11-28 16:14:31 -05:00
f507de8256
Improve the migration script, removing the need for --legacy
2022-11-26 21:24:00 -05:00
bed8c1d047
Show correct times on the index page graph
2022-11-22 17:16:38 -05:00
78b8a73ea5
Add a note explaining that expired files aren't immediately removed
2022-11-22 16:51:54 -05:00
6d036eeb7d
Add support for expiring files
...
SUPPLEMENTALLY:
- Add an `expiration` field to the `file` table of the database
- Produce a migration for the above change
- Overhaul the cleanup script, and integrate into fhost.py
(now run using FLASK_APP=fhost flask prune)
- Replace the old cleanup script with a deprecation notice
- Add information about how to expire files to the index
- Update the README with information about the new script
2022-11-22 16:15:50 -05:00