Fix issue with backup UUID on migration

This commit is contained in:
amcmanu3 2024-06-02 10:47:13 -04:00
parent e2132c2130
commit a69d569e23

View File

@ -66,7 +66,7 @@ def migrate(migrator: Migrator, database, **kwargs):
database = db database = db
class NewBackups(peewee.Model): class NewBackups(peewee.Model):
backup_id = peewee.CharField(primary_key=True, default=Helpers.create_uuid()) backup_id = peewee.CharField(primary_key=True, default=Helpers.create_uuid)
backup_name = peewee.CharField(default="New Backup") backup_name = peewee.CharField(default="New Backup")
backup_location = peewee.CharField(default="") backup_location = peewee.CharField(default="")
excluded_dirs = peewee.CharField(null=True) excluded_dirs = peewee.CharField(null=True)