Skip to content

Commit

Permalink
fix(install): reorder key changes on conditions table
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Dec 16, 2019
1 parent bf4b6d9 commit 82838a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/upgrade_to_2.9.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ public function upgrade(Migration $migration) {
}
$migration->migrationOneTable($table);
$migration->changeField($table, 'show_field', 'plugin_formcreator_questions_id', 'integer', ['value' => '0', 'comment' => 'question to test for the condition']);
$migration->addKey($table, ['plugin_formcreator_questions_id']);
$migration->dropKey($table, 'plugin_formcreator_questions_id');
$migration->addKey($table, ['plugin_formcreator_questions_id']);
$migration->addKey($table, ['itemtype', 'items_id']);
$migration->addPostQuery("UPDATE `$table` SET `itemtype` = 'plugin_formcreator_question' WHERE `itemtype` = ''");

Expand Down

0 comments on commit 82838a2

Please sign in to comment.