mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Update 020_update_index_recordings.py
This commit is contained in:
parent
b41faa9628
commit
4f7dcb4cfa
@ -26,7 +26,7 @@ SQL = pw.SQL
|
|||||||
|
|
||||||
|
|
||||||
def migrate(migrator, database, fake=False, **kwargs):
|
def migrate(migrator, database, fake=False, **kwargs):
|
||||||
migrator.sql('DROP INDEX recordings_end_time_start_time')
|
migrator.sql("DROP INDEX recordings_end_time_start_time")
|
||||||
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)'
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user