Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(install): fix addKey call
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry authored and DIOHz0r committed Jul 10, 2018
1 parent 5a33a4e commit 1cfb807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/upgrade/update_to_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function plugin_flyvemdm_update_to_dev(Migration $migration) {
$migration->changeField($table, 'plugin_flyvemdm_fleets_id', 'items_id_applied', 'integer');
$migration->dropKey($table, 'plugin_flyvemdm_fleets_id');
$migration->addField($table, 'itemtype_applied', 'string', ['after' => 'id']);
$migration->addKey($table, 'FK_applied', ['itemtype_applied', 'items_id_applied']);
$migration->addKey($table, ['itemtype_applied', 'items_id_applied'], 'FK_applied');
// All tasks already created were applied on fleets
$migration->addPostQuery("UPDATE `$table` SET `itemtype_applied` = 'PluginFlyvemdmFleet'");
$migration->executeMigration();
Expand Down

0 comments on commit 1cfb807

Please sign in to comment.