mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-31 16:12:19 +03:00
Fix migration
- Ensure that defaults match between Event and migration script - Deconflict migration script number (from rebase) Issue: #2948
This commit is contained in:
+1
-3
@@ -30,9 +30,7 @@ SQL = pw.SQL
|
||||
def migrate(migrator, database, fake=False, **kwargs):
|
||||
migrator.add_fields(
|
||||
Event,
|
||||
ratio=pw.FloatField(
|
||||
default=1.0
|
||||
), # There is no way to get the true ratio from an existing recording, so simply assume they are square.
|
||||
ratio=pw.FloatField(default=1.0), # Assume that existing detections are square
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user