mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-21 15:36:28 -05:00
Cleanup
This commit is contained in:
parent
9955e1bf67
commit
c37b5f7f44
1 changed files with 1 additions and 5 deletions
|
|
@ -262,11 +262,7 @@ class KnownDestinationsStore:
|
|||
ratchet BLOB NOT NULL,
|
||||
received REAL NOT NULL)""")
|
||||
|
||||
if 0 < db_version < 2:
|
||||
# Version 2 adds the announced link request cost column. On migrated
|
||||
# databases this column trails identity_hash, so all writes must name
|
||||
# their target columns explicitly.
|
||||
self._conn.execute("ALTER TABLE known_destinations ADD COLUMN lr_cost INTEGER")
|
||||
if 0 < db_version < 2: self._conn.execute("ALTER TABLE known_destinations ADD COLUMN lr_cost INTEGER")
|
||||
|
||||
self._conn.execute("PRAGMA user_version = 2")
|
||||
self._conn.commit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue