mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-19 15:23:20 +00: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:
1 parent
c93b186eda
commit
93260f6cfd
6 files changed
+75
-10
No files matched your search
@@ -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