9 virtual std::string
id() = 0;
13 bool isApplied() {
return db_->lookup_int<
bool>(
id(), DbStorage::Columns::migrations).has_value(); }
27 std::shared_ptr<DbStorage>
db_;
Definition: migration_base.hpp:5
virtual uint32_t dbVersion()=0
virtual std::string id()=0
std::shared_ptr< DbStorage > db_
Definition: migration_base.hpp:27
void apply(logger::Logger &log)
Definition: migration_base.hpp:15
virtual void migrate(logger::Logger &log)=0
Base(std::shared_ptr< DbStorage > db)
Definition: migration_base.hpp:7
Batch batch_
Definition: migration_base.hpp:28
void setApplied()
Definition: migration_base.hpp:25
bool isApplied()
Definition: migration_base.hpp:13
std::hash for asio::adress
Definition: FixedHash.h:483
boost::log::sources::severity_channel_logger_mt<> Logger
Definition: logger.hpp:11
Definition: final_chain_header.hpp:6
rocksdb::WriteBatch Batch
Definition: storage.hpp:73