mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-23 02:17:21 +00:00
Fix usages of removed attributes
This commit is contained in:
parent
b3825c209e
commit
dbf2e471b5
@ -38,13 +38,13 @@ class FileStorage(SQLiteStorage):
|
|||||||
version = self.version()
|
version = self.version()
|
||||||
|
|
||||||
if version == 1:
|
if version == 1:
|
||||||
with self.lock, self.conn:
|
with self.conn:
|
||||||
self.conn.execute("DELETE FROM peers")
|
self.conn.execute("DELETE FROM peers")
|
||||||
|
|
||||||
version += 1
|
version += 1
|
||||||
|
|
||||||
if version == 2:
|
if version == 2:
|
||||||
with self.lock, self.conn:
|
with self.conn:
|
||||||
self.conn.execute("ALTER TABLE sessions ADD api_id INTEGER")
|
self.conn.execute("ALTER TABLE sessions ADD api_id INTEGER")
|
||||||
|
|
||||||
version += 1
|
version += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user