Package lu.kbra.pclib.db.migration
Class RawSQLMigration
java.lang.Object
lu.kbra.pclib.db.migration.RawSQLMigration
- All Implemented Interfaces:
DatabaseMigration
-
Constructor Summary
ConstructorsConstructorDescriptionRawSQLMigration(int order, String name, String upSQL) RawSQLMigration(int order, String name, String upSQL, String downSQL) -
Method Summary
Modifier and TypeMethodDescriptionvoiddown(Database database, Connection connection) name()intorder()Lower values run first.voidup(Database database, Connection connection) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface lu.kbra.pclib.db.migration.DatabaseMigration
id, shouldRun
-
Constructor Details
-
RawSQLMigration
-
RawSQLMigration
-
-
Method Details
-
down
- Specified by:
downin interfaceDatabaseMigration- Throws:
DBException
-
name
- Specified by:
namein interfaceDatabaseMigration
-
order
public int order()Description copied from interface:DatabaseMigrationLower values run first.- Specified by:
orderin interfaceDatabaseMigration
-
up
- Specified by:
upin interfaceDatabaseMigration- Throws:
DBException
-