mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Add default
This commit is contained in:
parent
4f41e7df86
commit
a50534ebc6
@ -41,4 +41,4 @@ class Recordings(Model): # type: ignore[misc]
|
||||
duration = FloatField()
|
||||
motion = IntegerField(null=True)
|
||||
objects = IntegerField(null=True)
|
||||
segment_size = FloatField() # this should be stored as MB
|
||||
segment_size = FloatField(default=0) # this should be stored as MB
|
||||
|
||||
@ -38,7 +38,7 @@ SQL = pw.SQL
|
||||
def migrate(migrator, database, fake=False, **kwargs):
|
||||
migrator.add_fields(
|
||||
Recordings,
|
||||
segment_size=pw.FloatField(),
|
||||
segment_size=pw.FloatField(default=0),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user