mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-18 09:41:02 +02:00
Added OperationCriticalTransaction (Transaction subtype)
This commit is contained in:
parent
fbdfa1676a
commit
8fed50b774
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* This file is part of Player Analytics (Plan).
|
||||
*
|
||||
* Plan is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License v3 as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Plan 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 Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.djrapitops.plan.db.access.transactions;
|
||||
|
||||
/**
|
||||
* Transaction that is required to be executed before a database is operable.
|
||||
* <p>
|
||||
* If this transaction fails the database failed to open.
|
||||
*
|
||||
* @author Rsl1122
|
||||
*/
|
||||
public abstract class OperationCriticalTransaction extends Transaction {
|
||||
|
||||
}
|
@ -19,7 +19,7 @@ package com.djrapitops.plan.db.patches;
|
||||
import com.djrapitops.plan.api.exceptions.database.DBOpException;
|
||||
import com.djrapitops.plan.db.DBType;
|
||||
import com.djrapitops.plan.db.SQLDB;
|
||||
import com.djrapitops.plan.db.access.transactions.Transaction;
|
||||
import com.djrapitops.plan.db.access.transactions.OperationCriticalTransaction;
|
||||
import com.djrapitops.plan.db.sql.parsing.TableSqlParser;
|
||||
import com.djrapitops.plan.db.sql.queries.schema.H2SchemaQueries;
|
||||
import com.djrapitops.plan.db.sql.queries.schema.MySQLSchemaQueries;
|
||||
@ -29,7 +29,7 @@ import com.djrapitops.plugin.utilities.Verify;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public abstract class Patch extends Transaction {
|
||||
public abstract class Patch extends OperationCriticalTransaction {
|
||||
|
||||
protected final SQLDB db;
|
||||
protected final DBType dbType;
|
||||
|
Loading…
Reference in New Issue
Block a user