Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
migration-run.cpp File Reference

Namespaces

namespace  atlas
 
namespace  atlas::database
 
namespace  atlas::database::migrations
 

Macros

#define MIGRATE(idx)
 Helper MACRO to easily add migrations to the switch inside runUp().
 

Functions

template<std::uint64_t id>
void atlas::database::migrations::runUp (Transaction &trans)
 Runs the transaction and marks it as complete in the migrations table.
 
void atlas::database::migrations::runUp ()
 Runs all transactions up until hitting MIGRATIONS_VERSION - 1.
 

Variables

static constexpr int atlas::database::migrations::MIGRATIONS_VERSION { 18 }
 Int to represent what the highest migration is at (Starting at migration 0 we run until we are N <= MIGRATIONS_VERSION)
 

Macro Definition Documentation

◆ MIGRATE

#define MIGRATE ( idx)
Value:
case idx: \
runUp< idx >( transaction ); \
break;

Helper MACRO to easily add migrations to the switch inside runUp().