mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-18 17:15:13 +01:00
Fix backup migration
This commit is contained in:
parent
9ebaf38553
commit
f991b79782
@ -22,7 +22,10 @@ def migrate(migrator: Migrator, database, **kwargs):
|
|||||||
"Migrations: Adding columns [backup_id, "
|
"Migrations: Adding columns [backup_id, "
|
||||||
"backup_name, backup_location, enabled, default, action_id, backup_status]"
|
"backup_name, backup_location, enabled, default, action_id, backup_status]"
|
||||||
)
|
)
|
||||||
migrator.add_columns("backups", backup_id=peewee.UUIDField(default=uuid.uuid4))
|
migrator.add_columns(
|
||||||
|
"backups",
|
||||||
|
backup_id=peewee.CharField(primary_key=True, default=Helpers.create_uuid),
|
||||||
|
)
|
||||||
migrator.add_columns("backups", backup_name=peewee.CharField(default="Default"))
|
migrator.add_columns("backups", backup_name=peewee.CharField(default="Default"))
|
||||||
migrator.add_columns("backups", backup_location=peewee.CharField(default=""))
|
migrator.add_columns("backups", backup_location=peewee.CharField(default=""))
|
||||||
migrator.add_columns("backups", enabled=peewee.BooleanField(default=True))
|
migrator.add_columns("backups", enabled=peewee.BooleanField(default=True))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user