diff --git a/src/Simplex/Messaging/Agent/Store/SQLite/Migrations.hs b/src/Simplex/Messaging/Agent/Store/SQLite/Migrations.hs index 2f5491674..ceccaa0f0 100644 --- a/src/Simplex/Messaging/Agent/Store/SQLite/Migrations.hs +++ b/src/Simplex/Messaging/Agent/Store/SQLite/Migrations.hs @@ -64,8 +64,8 @@ get conn migrations = run :: Connection -> [Migration] -> IO () run conn ms = forM_ ms $ \Migration {name, up} -> do - DB.withImmediateTransaction conn $ insert name >> execSQL up when (name == "m20220811_onion_hosts") updateServers + DB.withImmediateTransaction conn $ insert name >> execSQL up where insert name = DB.execute conn "INSERT INTO migrations (name, ts) VALUES (?, ?);" . (name,) =<< getCurrentTime execSQL = SQLite3.exec $ DB.connectionHandle conn