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

Commit

Permalink
fix(upgrade): use of migration tool
Browse files Browse the repository at this point in the history
Signed-off-by: Domingo Oropeza <doropeza@teclib.com>
  • Loading branch information
DIOHz0r committed Mar 2, 2018
1 parent 172bc78 commit 34ad02b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions install/upgrade/update_to_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,7 @@ function plugin_flyvemdm_update_to_dev(Migration $migration) {
$migration->addfield($table, 'plugin_orion_tasks_id', 'integer', ['after' => 'dl_filename']);
$migration->changeField($table, 'name', 'package_name', 'string');
$migration->migrationOneTable($table);
if ($DB->fieldExists($table, 'filesize')) {
$DB->query("ALTER TABLE `$table` DROP COLUMN `filesize`") or die("Could upgrade table $table" . $DB->error());
}
$migration->dropField($table, 'filesize');
$migration->addField($table, 'name', 'string', ['after' => 'id']);
$migration->addKey($table, 'entities_id', 'entities_id');
$migration->addPostQuery("UPDATE `$table` SET `parse_status` = 'parsed'");
Expand Down

0 comments on commit 34ad02b

Please sign in to comment.