use of simplepets.brainsynder.errors.SimplePetsException in project SimplePets by brainsynder-Dev.
the class MySQL method addColumn.
public void addColumn(Connection connection, String column, String type) {
try {
Statement statement = connection.createStatement();
statement.executeUpdate("ALTER TABLE `SimplePets` ADD " + column + " " + type + " NOT NULL");
} catch (Exception e) {
throw new SimplePetsException("Unable to add '" + column + "' to the database", e);
}
}
Aggregations