Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fix foreign key upgrade of traps_group table #5752

Merged
merged 2 commits into from
Oct 10, 2017
Merged

Conversation

kduret
Copy link
Contributor

@kduret kduret commented Oct 9, 2017

No description provided.

"ALTER TABLE `traps_group` " .
" CHANGE COLUMN `traps_group_id` " .
" `traps_group_id` INT NOT NULL AUTO_INCREMENT"
);

$pearDB->query(
"ALTER TABLE `traps_group_relation` " .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you place the foreign key recreation after the target field got PRIMARY KEY'd and the unnecessery INDEX dropped ?

@Ridene Ridene requested review from Ridene and removed request for Ridene October 9, 2017 12:25
@ganoze ganoze merged commit f72299b into 2.8.x Oct 10, 2017
@ganoze ganoze deleted the trapGroupForeignKey branch October 10, 2017 08:26
@ganoze ganoze added this to the 2.8.15 milestone Oct 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants