6#include <ilog/TLoggerCompWrap.h>
7#include <ifile/IFileNameParam.h>
10#include <imtdb/CMigrationControllerCompBase.h>
17class CMigrationControllerComp:
virtual public imtdb::CMigrationControllerCompBase
20 typedef imtdb::CMigrationControllerCompBase BaseClass;
22 I_BEGIN_COMPONENT(CMigrationControllerComp);
23 I_ASSIGN(m_migrationFolderPathCompPtr,
"MigrationFolderPath",
"The property holds the folder contains SQL migraton script",
false,
"MigrationFolderPath");
28 virtual bool DoMigration(
int& resultRevision,
const istd::CIntRange& subRange = istd::CIntRange())
const override;
31 virtual void OnComponentCreated()
override;
34 int GetLastMigration(
const QString& migrationFolder, QString& errorMessage)
const;
37 I_REF(ifile::IFileNameParam, m_migrationFolderPathCompPtr);
Database Abstraction Layer (ORM Framework) for ImtCore applications.