Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(remote-server): store FQDN (fix #7615)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinsivy committed Jul 1, 2019
1 parent 4239e81 commit 89119d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion www/install/createTables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2371,7 +2371,7 @@ CREATE TABLE IF NOT EXISTS contact_feature (
-- Create remote servers table for keeping track of remote instances
CREATE TABLE IF NOT EXISTS `remote_servers` (
`id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`ip` VARCHAR(16) NOT NULL,
`ip` VARCHAR(255) NOT NULL,
`app_key` VARCHAR(40) NOT NULL,
`version` VARCHAR(16) NOT NULL,
`is_connected` TINYINT(1) NOT NULL DEFAULT 0,
Expand Down
5 changes: 5 additions & 0 deletions www/install/sql/centreon/Update-DB-18.10.5_to_18.10.6.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ UPDATE `informations` SET `value` = '18.10.6' WHERE CONVERT( `informations`.`key

-- Change traps_execution_command from varchar(255) to text
ALTER TABLE `traps` MODIFY COLUMN `traps_execution_command` text DEFAULT NULL;

--
-- Change IP field from varchar(16) to varchar(255)
--
ALTER TABLE `remote_servers` MODIFY COLUMN `ip` VARCHAR(255) NOT NULL;

0 comments on commit 89119d3

Please sign in to comment.