magnetico/pkg/persistence
rnhmjoj 06d864d49f
fix error with sqlite ≥ 3.34
Since sqlite 3.34[1] deleting a record in a fts5 table that doesn't
exist became an error. The resuls it that adding a torrent "corrupts"
the database and magnetico fails with this error:

    Could not add new torrent to the database.
    tx.Exec (INSERT OR REPLACE INTO torrents) database disk image is malformed

The problem can be simply avoided by setting modified_on = discovered_on
when inserting the torrent, instead of updating it afterwards with a
trigger.

[1]: 86f477edaa
2024-07-25 13:46:36 +02:00
..
beanstalkd.go Beanstalkd engine implementation. 2020-11-29 01:27:55 +03:00
interface.go Fix comment 2022-08-10 01:17:25 +02:00
iso8601_test.go cumulative commit! (see the description for changes) 2018-08-03 11:28:50 +03:00
iso8601.go better error handling at iso8601 2018-12-30 08:24:33 +03:00
postgres.go Minor fixes related to searching 2022-08-10 14:06:10 +02:00
sqlite3.go fix error with sqlite ≥ 3.34 2024-07-25 13:46:36 +02:00
stdout.go Beanstalkd engine implementation. 2020-11-29 01:27:55 +03:00