mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 17:12:16 +03:00
Update peewee-migrate to 0.14.x (#21243)
Replaces two functions calls, that were deprecated and aliases for the new function name: - Migrator.python -> Migration.run - Migrator.change_column -> Migrator.change_field
This commit is contained in:
@@ -4,8 +4,8 @@ from frigate.models import Event
|
||||
|
||||
|
||||
def migrate(migrator, database, fake=False, **kwargs):
|
||||
migrator.change_columns(Event, sub_label=pw.CharField(max_length=100, null=True))
|
||||
migrator.change_fields(Event, sub_label=pw.CharField(max_length=100, null=True))
|
||||
|
||||
|
||||
def rollback(migrator, database, fake=False, **kwargs):
|
||||
migrator.change_columns(Event, sub_label=pw.CharField(max_length=20, null=True))
|
||||
migrator.change_fields(Event, sub_label=pw.CharField(max_length=20, null=True))
|
||||
|
||||
Reference in New Issue
Block a user