feat: add migration to move old files to xdg directory

+ add db column for migration version
+ handle pre-init migrations
+ handle post-init migration
This commit is contained in:
geoffrey45
2023-02-12 03:22:21 +03:00
parent 97e29c3254
commit b77b1747f1
10 changed files with 215 additions and 19 deletions
+8 -2
View File
@@ -1,4 +1,10 @@
from .sample import SampleMigrationModel
"""
Migrations for the userdata database.
userdata_db_migrations = [SampleMigrationModel]
PLEASE NOTE: OLDER MIGRATIONS CAN NEVER BE DELETED.
ONLY MODIFY OLD MIGRATIONS FOR BUG FIXES OR ENHANCEMENTS ONLY
[TRY NOT TO MODIFY BEHAVIOR, UNLESS YOU KNOW WHAT YOU'RE DOING].
"""
userdata_db_migrations = []