mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 05:57:20 +00:00
18 lines
492 B
C
18 lines
492 B
C
|
#ifndef __IMIGRATIONHISTORY__H__
|
||
|
#define __IMIGRATIONHISTORY__H__
|
||
|
|
||
|
#include <string_view>
|
||
|
|
||
|
class IMigrationHistory {
|
||
|
public:
|
||
|
// Create the migration history table.
|
||
|
virtual void CreateMigrationHistoryTable() = 0;
|
||
|
|
||
|
// Check if the given migration has been run.
|
||
|
virtual bool IsMigrationRun(const std::string_view str) = 0;
|
||
|
|
||
|
// Insert the given migration into the migration history table.
|
||
|
virtual void InsertMigration(const std::string_view str) = 0;
|
||
|
};
|
||
|
#endif //!__IMIGRATIONHISTORY__H__
|