Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions inc/_core/model/db/_upgrade.funcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ function db_delta( $queries, $exclude_types = array(), $execute = false )
{
if( ! empty( $primary_key_fields ) )
{
$column_definition .= ', DROP PRIMARY KEY';
$column_definition .= ', DROP PRIMARY KEY, ADD PRIMARY KEY('.$tablefield->Field.')';
unset( $obsolete_indices['PRIMARY'] );
}
}
Expand Down Expand Up @@ -1828,4 +1828,4 @@ function db_upgrade_to_utf8_ascii( $show_title = true )

echo '<p>'.T_('Upgrading done!').'</p>';
}
?>
?>