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 for db schema update and locale
Browse files Browse the repository at this point in the history
Signed-off-by: Domingo Oropeza <[email protected]>
  • Loading branch information
DIOHz0r committed May 23, 2018
1 parent 5006bce commit 0bfc786
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install/policies/mdm.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => $category,
'comment' => __('Use TLS.', 'flyvemdm'),
'comment' => __('Use TLS', 'flyvemdm').'.',
'default_value' => '',
'recommended_value' => '',
'is_android_system' => '0',
Expand Down
6 changes: 6 additions & 0 deletions install/upgrade/update_to_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ function plugin_flyvemdm_update_to_dev(Migration $migration) {
$migration->addField($table, 'apple_max_version', 'bool', ['after' => 'apple_min_version']);
$migration->addKey($table, 'group', 'group');
$migration->addKey($table, 'plugin_flyvemdm_policycategories_id', 'plugin_flyvemdm_policycategories_id');
if ($DB->fieldExists($table, 'is_android_policy')) {
$migration->dropField($table, 'is_android_policy');
}
if ($DB->fieldExists($table, 'is_apple_policy')) {
$migration->dropField($table, 'is_apple_policy');
}

// Rename and update fleet_policy into task
$table = 'glpi_plugin_flyvemdm_tasks';
Expand Down

0 comments on commit 0bfc786

Please sign in to comment.