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

Commit

Permalink
feat(policy): mark system permission requirement for android
Browse files Browse the repository at this point in the history
  • Loading branch information
btry authored and DIOHz0r committed Nov 8, 2017
1 parent a9bb90e commit c35fe3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions install/mysql/plugin_flyvemdm_empty.sql
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ CREATE TABLE `glpi_plugin_flyvemdm_policies` (
`default_value` varchar(255) NOT NULL DEFAULT '',
`recommended_value` varchar(255) NOT NULL DEFAULT '',
`is_android_policy` tinyint(1) NOT NULL DEFAULT '0',
`is_android_system` tinyint(1) NOT NULL DEFAULT '0',
`is_apple_policy` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `group` (`group`),
Expand Down
3 changes: 2 additions & 1 deletion install/upgrade/update_to_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ function plugin_flyvemdm_update_to_dev(Migration $migration) {
$table = 'glpi_plugin_flyvemdm_policies';
$migration->addField($table, 'recommended_value', 'string', ['after' => 'default_value']);
$migration->addField($table, 'is_android_policy', 'bool', ['after' => 'recommended_value']);
$migration->addField($table, 'is_apple_policy', 'bool', ['after' => 'is_android_policy']);
$migration->addField($table, 'is_android_system', 'bool', ['after' => 'is_android_policy']);
$migration->addField($table, 'is_apple_policy', 'bool', ['after' => 'is_android_system']);
$migration->addKey($table, 'group', 'group');
$migration->addKey($table, 'plugin_flyvemdm_policycategories_id', 'plugin_flyvemdm_policycategories_id');
// All policies exist for Android
Expand Down

0 comments on commit c35fe3d

Please sign in to comment.