mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-26 19:41:29 +08:00
Increase maximum event sub_label length to 100 characters (#6350)
* Increase maximum sub label length to 100 characters and update corresponding fields in models and API * black format...
This commit is contained in:

committed by
GitHub

parent
2add675d42
commit
03b45c153b
12
migrations/016_sublabel_increase.py
Normal file
12
migrations/016_sublabel_increase.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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))
|
Reference in New Issue
Block a user