This commit is contained in:
Mark Qvist 2026-10-31 13:52:27 +01:00
parent fe2fe94dd8
commit f1fc51ba09
No known key found for this signature in database

View file

@ -264,9 +264,11 @@ class KnownDestinationsStore:
try:
# Pre-release migrations, will be folded into finalized schema before 1.6.0 release
self._conn.execute("BEGIN")
if 0 < db_version < 2: self._conn.execute("ALTER TABLE known_destinations ADD COLUMN lr_cost REAL")
if 0 < db_version < 3: self._conn.execute("ALTER TABLE known_destinations ALTER COLUMN packet_hash DROP NOT NULL")
self._conn.execute("PRAGMA user_version = 3")
self._conn.execute("COMMIT")
self._conn.commit()
except Exception as e:
import RNS