@Override public void createTables(final DatabaseConnector connection) { if (super.needsTables(connection)) { super.createTables(connection); } if (!connection.hasColumn(table, classColumnName)) { addColumn(connection, classColumnName, Defaults.TYPE_LONG_STRING()); addColumn(connection, itemIdColumnName, Defaults.TYPE_PK()); } }
@Override public boolean needsTables(final DatabaseConnector connection) { return super.needsTables(connection) || !connection.hasColumn(table, classColumnName); }