Herunterladen als
root/src/databasemigration.cpp @ 5d93390e
c22391b2 | Christian Ehringfeld | /*
|
|
* Copyright (C) 2015 Christian Ehringfeld <c.ehringfeld@t-online.de>
|
|||
*
|
|||
* This program is free software; you can redistribute it and/or modify it
|
|||
* under the terms of the GNU Lesser General Public License as published by
|
|||
* the Free Software Foundation.
|
|||
*
|
|||
* This program is distributed in the hope that it will be useful, but
|
|||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|||
* for more details.
|
|||
*
|
|||
* You should have received a copy of the GNU Lesser General Public License
|
|||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|||
*/
|
|||
7e233492 | Christian Ehringfeld | #include "databasemigration.h"
|
|
using namespace CuteEntityManager;
|
|||
DatabaseMigration::DatabaseMigration() : Entity() {
|
|||
}
|
|||
e0e1ead8 | Christian Ehringfeld | DatabaseMigration::DatabaseMigration(QString version,
|
|
QDateTime applyTime) : Entity() {
|
|||
1e213c09 | Christian Ehringfeld | this->version = version;
|
|
this->applyTime = applyTime;
|
|||
}
|
|||
7e233492 | Christian Ehringfeld | DatabaseMigration::~DatabaseMigration() {
|
|
}
|
|||
586bb527 | Christian Ehringfeld | ||
QString DatabaseMigration::getVersion() const {
|
|||
7e233492 | Christian Ehringfeld | return version;
|
|
}
|
|||
586bb527 | Christian Ehringfeld | void DatabaseMigration::setVersion(const QString &value) {
|
|
7e233492 | Christian Ehringfeld | version = value;
|
|
}
|
|||
586bb527 | Christian Ehringfeld | ||
QDateTime DatabaseMigration::getApplyTime() const {
|
|||
7e233492 | Christian Ehringfeld | return applyTime;
|
|
}
|
|||
586bb527 | Christian Ehringfeld | void DatabaseMigration::setApplyTime(const QDateTime &value) {
|
|
7e233492 | Christian Ehringfeld | applyTime = value;
|
|
}
|