Browse Source

Don't forget to create stop_condition column

PR #17935.
adaptive-webui-19844
Vladimir Golovnev 2 years ago committed by GitHub
parent
commit
c29a6079bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/bittorrent/dbresumedatastorage.cpp

2
src/base/bittorrent/dbresumedatastorage.cpp

@ -499,6 +499,7 @@ void BitTorrent::DBResumeDataStorage::createDB() const
makeColumnDefinition(DB_COLUMN_HAS_SEED_STATUS, "INTEGER NOT NULL"), makeColumnDefinition(DB_COLUMN_HAS_SEED_STATUS, "INTEGER NOT NULL"),
makeColumnDefinition(DB_COLUMN_OPERATING_MODE, "TEXT NOT NULL"), makeColumnDefinition(DB_COLUMN_OPERATING_MODE, "TEXT NOT NULL"),
makeColumnDefinition(DB_COLUMN_STOPPED, "INTEGER NOT NULL"), makeColumnDefinition(DB_COLUMN_STOPPED, "INTEGER NOT NULL"),
makeColumnDefinition(DB_COLUMN_STOP_CONDITION, "TEXT NOT NULL DEFAULT `None`"),
makeColumnDefinition(DB_COLUMN_RESUMEDATA, "BLOB NOT NULL"), makeColumnDefinition(DB_COLUMN_RESUMEDATA, "BLOB NOT NULL"),
makeColumnDefinition(DB_COLUMN_METADATA, "BLOB") makeColumnDefinition(DB_COLUMN_METADATA, "BLOB")
}; };
@ -627,6 +628,7 @@ void BitTorrent::DBResumeDataStorage::Worker::store(const TorrentID &id, const L
DB_COLUMN_HAS_SEED_STATUS, DB_COLUMN_HAS_SEED_STATUS,
DB_COLUMN_OPERATING_MODE, DB_COLUMN_OPERATING_MODE,
DB_COLUMN_STOPPED, DB_COLUMN_STOPPED,
DB_COLUMN_STOP_CONDITION,
DB_COLUMN_RESUMEDATA DB_COLUMN_RESUMEDATA
}; };

Loading…
Cancel
Save