Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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...
- Loading branch information
1 parent
2add675
commit 03b45c1
Showing
4 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)) |