diff --git a/RNS/Storage.py b/RNS/Storage.py index 1b9607b0..812afed4 100644 --- a/RNS/Storage.py +++ b/RNS/Storage.py @@ -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()