Skip to content

Commit

Permalink
0001369: Alter generated by table upgrade that requires and rebuild o…
Browse files Browse the repository at this point in the history
…f the table and includes the addition or removal of columns fails
  • Loading branch information
chenson42 committed Aug 7, 2013
1 parent db4701d commit 3786fad
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -80,7 +80,9 @@ public void apply(Database database, boolean caseSensitive)
{
Column column = table.findColumn(_oldPrimaryKeyColumns[idx].getName(), caseSensitive);

column.setPrimaryKey(false);
if (column != null) {
column.setPrimaryKey(false);
}
}
for (int idx = 0; idx < _newPrimaryKeyColumns.length; idx++)
{
Expand Down

0 comments on commit 3786fad

Please sign in to comment.