mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add migration for excluded backup directories
Changes the column 'directories' in the backups table to 'excluded_dirs' so that we're only storing a list of excluded directories
This commit is contained in:
parent
2265adbf82
commit
54d8ee4b7d
8
app/migrations/20220227162446_backup_options.py
Normal file
8
app/migrations/20220227162446_backup_options.py
Normal file
@ -0,0 +1,8 @@
|
||||
# Generated by database migrator
|
||||
import peewee
|
||||
|
||||
def migrate(migrator, db):
|
||||
migrator.rename_column('backups', 'directories', 'excluded_dirs')
|
||||
|
||||
def rollback(migrator, db):
|
||||
migrator.rename_column('backups', 'excluded_dirs', 'directories')
|
Loading…
Reference in New Issue
Block a user