mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-26 19:41:29 +08:00
Add region count to database and use for motion activity (#10480)
* Add region count to database and use for motion activity * Fix test
This commit is contained in:
@@ -34,6 +34,9 @@ def migrate(migrator, database, fake=False, **kwargs):
|
||||
objects=pw.IntegerField(null=True),
|
||||
motion=pw.IntegerField(null=True),
|
||||
)
|
||||
migrator.sql(
|
||||
'CREATE INDEX "recordings_activity" ON "recordings" ("camera", "start_time" DESC, "regions")'
|
||||
)
|
||||
|
||||
|
||||
def rollback(migrator, database, fake=False, **kwargs):
|
||||
|
Reference in New Issue
Block a user