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

Commit

Permalink
fix(agent): non conform definition of booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
btry authored and DIOHz0r committed Jan 11, 2018
1 parent 9096104 commit ce5947f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/mysql/plugin_flyvemdm_empty.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_flyvemdm_agents` (
`version` varchar(255) NOT NULL DEFAULT '',
`computers_id` int(11) NOT NULL DEFAULT '0',
`users_id` int(11) NOT NULL DEFAULT '0',
`wipe` int(1) NOT NULL DEFAULT '0',
`lock` int(1) NOT NULL DEFAULT '0',
`wipe` tinyint(1) NOT NULL DEFAULT '0',
`lock` tinyint(1) NOT NULL DEFAULT '0',
`enroll_status` enum('enrolled','unenrolling','unenrolled') NOT NULL DEFAULT 'enrolled',
`entities_id` int(11) NOT NULL DEFAULT '0',
`plugin_flyvemdm_fleets_id` int(11) DEFAULT NULL,
Expand Down
2 changes: 2 additions & 0 deletions install/upgrade/update_to_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ function plugin_flyvemdm_update_to_dev(Migration $migration) {
$migration->addKey($table, 'computers_id', 'computers_id');
$migration->addKey($table, 'users_id', 'users_id');
$migration->addKey($table, 'entities_id', 'entities_id');
$migration->changeField($table, 'wipe', 'wipe', 'bool');
$migration->changeField($table, 'lock', 'lock', 'bool');

$enumMdmType = PluginFlyvemdmAgent::getEnumMdmType();
$currentEnumMdmType = PluginFlyvemdmCommon::getEnumValues($table, 'mdm_type');
Expand Down

0 comments on commit ce5947f

Please sign in to comment.