/** * Remove the given index from the list. * * @param index the index to remove */ public void removeIndex(Index index) { ArrayList<Index> indexes = getIndexes(); if (indexes != null) { remove(indexes, index); if (index.getIndexType().isPrimaryKey()) { for (Column col : index.getColumns()) { col.setPrimaryKey(false); } } } }
column.setPrimaryKey(true); column.setPrimaryKey(true); column.setPrimaryKey(true); column.setAutoIncrement(true, start, increment); column.setPrimaryKey(true); if (readIf("NOT")) { read("NULL");
Column column = parseColumnForTable(columnName, true); if (column.isAutoIncrement() && column.isPrimaryKey()) { column.setPrimaryKey(false); IndexColumn[] cols = {new IndexColumn()}; cols[0].columnName = column.getName();