mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 19:55:26 +03:00
Update 020_update_index_recordings.py
Formatting
This commit is contained in:
parent
87d92c528f
commit
f493fdea1d
@ -32,12 +32,12 @@ def migrate(migrator, database, fake=False, **kwargs):
|
|||||||
migrator.sql(
|
migrator.sql(
|
||||||
'CREATE INDEX "recordings_camera_start_time_end_time" ON "recordings" ("camera", "start_time" DESC, "end_time" DESC)'
|
'CREATE INDEX "recordings_camera_start_time_end_time" ON "recordings" ("camera", "start_time" DESC, "end_time" DESC)'
|
||||||
)
|
)
|
||||||
migrator.sql(
|
migrator.sql(
|
||||||
'CREATE INDEX "recordings_api_recordings_summary" ON "recordings" ("camera", "start_time" DESC, "duration", "motion", "objects")'
|
'CREATE INDEX "recordings_api_recordings_summary" ON "recordings" ("camera", "start_time" DESC, "duration", "motion", "objects")'
|
||||||
)
|
)
|
||||||
migrator.sql(
|
migrator.sql(
|
||||||
'CREATE INDEX "recordings_start_time" ON "recordings" ("start_time")'
|
'CREATE INDEX "recordings_start_time" ON "recordings" ("start_time")'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def rollback(migrator, database, fake=False, **kwargs):
|
def rollback(migrator, database, fake=False, **kwargs):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user