Skip to content

Commit

Permalink
MP: cleanup of install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpascoe committed Sep 12, 2008
1 parent ab4c736 commit 875cd24
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 0 additions & 4 deletions install/3-to-4.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ UPDATE sequences SET seq = seq +10 WHERE name LIKE 'locations';

ALTER TABLE `interfaces` ADD `last_response` TIMESTAMP NULL COMMENT 'Last time this IP was communicated with';

ALTER TABLE `dcm_module_list` DROP `id`;

INSERT INTO `dcm_module_list` (`name` , `description` , `file`)
VALUES ('add_module', 'Register a new DCM module', 'get_module_list.inc.php');
4 changes: 4 additions & 0 deletions install/4-to-5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ ALTER TABLE `dns_server_domains` CHANGE `id` `id` INT( 10 ) UNSIGNED NOT NULL ,
CHANGE `host_id` `host_id` INT( 10 ) UNSIGNED NOT NULL ,
CHANGE `domain_id` `domain_id` INT( 10 ) UNSIGNED NOT NULL;

ALTER TABLE `dcm_module_list` DROP `id`;

INSERT INTO `dcm_module_list` (`name` , `description` , `file`)
VALUES ('add_module', 'Register a new DCM module', 'get_module_list.inc.php');

12 changes: 6 additions & 6 deletions install/ona-tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ CREATE TABLE `dhcp_pools` (

DROP TABLE IF EXISTS `dhcp_server_subnets`;
CREATE TABLE `dhcp_server_subnets` (
`id` tinyint(10) unsigned NOT NULL,
`host_id` tinyint(10) unsigned NOT NULL,
`subnet_id` tinyint(10) unsigned NOT NULL,
`id` int(10) unsigned NOT NULL,
`host_id` int(10) unsigned NOT NULL,
`subnet_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='stores subnet to dhcp server relationships';

Expand Down Expand Up @@ -254,9 +254,9 @@ CREATE TABLE `dns` (

DROP TABLE IF EXISTS `dns_server_domains`;
CREATE TABLE `dns_server_domains` (
`id` tinyint(10) unsigned NOT NULL,
`host_id` tinyint(10) unsigned NOT NULL,
`domain_id` tinyint(10) unsigned NOT NULL,
`id` int(10) unsigned NOT NULL,
`host_id` int(10) unsigned NOT NULL,
`domain_id` int(10) unsigned NOT NULL,
`role` VARCHAR(10) NOT NULL COMMENT 'What role does this server play for this domain? master, slave, forward?',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Stores domain to DNS server relationships';
Expand Down

0 comments on commit 875cd24

Please sign in to comment.