mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
03b45c153b
* Increase maximum sub label length to 100 characters and update corresponding fields in models and API * black format...
13 lines
406 B
Python
13 lines
406 B
Python
import peewee as pw
|
|
from playhouse.migrate import *
|
|
from playhouse.sqlite_ext import *
|
|
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))
|
|
|
|
|
|
def rollback(migrator, database, fake=False, **kwargs):
|
|
migrator.change_columns(Event, sub_label=pw.CharField(max_length=20, null=True))
|