ipcam_server: sqlite fix
This commit is contained in:
parent
7605ec06d8
commit
4e5f302958
@ -79,7 +79,7 @@ class IPCamServerDatabase(SQLiteBase):
|
||||
cursor.execute("ALTER TABLE motion_failures ADD COLUMN message TEXT NOT NULL DEFAULT ''")
|
||||
|
||||
if version < 4:
|
||||
cursor.execute("ALTER TABLE timestamps ADD COLUMN motion_start_time INTEGER NOT NULL")
|
||||
cursor.execute("ALTER TABLE timestamps ADD COLUMN motion_start_time INTEGER NOT NULL DEFAULT 0")
|
||||
cursor.execute("UPDATE timestamps SET motion_start_time=motion_time")
|
||||
|
||||
self.commit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user