Skip to content

Commit

Permalink
Updating ipv6 branch to perform upgrades to tables for ipv6 data. Sho…
Browse files Browse the repository at this point in the history
…uld be non destructive.
  • Loading branch information
mattpascoe committed Oct 10, 2012
1 parent b62d77d commit 9b6786f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions install/10-to-11.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<schema version="0.3">
<sql>
<query platform="mysql|mysqlt">ALTER TABLE `blocks` CHANGE `ip_addr_start` `ip_addr_start` DECIMAL( 39, 0 ) UNSIGNED NOT NULL;</query>
<query platform="mysql|mysqlt">ALTER TABLE `blocks` CHANGE `ip_addr_end` `ip_addr_end` DECIMAL( 39, 0 ) UNSIGNED NOT NULL;</query>
<query platform="mysql|mysqlt">ALTER TABLE `subnets` CHANGE `ip_addr` `ip_addr` DECIMAL( 39, 0 ) UNSIGNED NOT NULL;</query>
<query platform="mysql|mysqlt">ALTER TABLE `subnets` CHANGE `ip_mask` `ip_mask` DECIMAL( 39, 0 ) UNSIGNED NOT NULL;</query>
<query platform="mysql|mysqlt">ALTER TABLE `interfaces` CHANGE `ip_addr` `ip_addr` DECIMAL( 39, 0 ) UNSIGNED NOT NULL;</query>
</sql>
</schema>


2 changes: 1 addition & 1 deletion install/ona-data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
('suggest_max_results', '10', 'Limits the amount of rows returned by queries. (test impact of changing this first)', '', '', 1, 0),
('syslog', '0', 'Log via syslog, only works if debug is set to 0', '', '', 0, 0),
('version', 'not-set', 'Tracks current installed version, used to detect when upgrades should be done.', '', '', 0, 0),
('upgrade_index', '10', 'Tracks current upgrade index, used to perform database upgrades.', '', '', 0, 0);</query>
('upgrade_index', '11', 'Tracks current upgrade index, used to perform database upgrades.', '', '', 0, 0);</query>


<query>INSERT INTO `users` VALUES (1,'guest','098f6bcd4621d373cade4e832627b4f6',0,'2007-10-30 02:55:37','2007-12-02 23:44:21'),(2,'admin','21232f297a57a5a743894a0e4a801fc3',0,'2007-10-30 03:00:17','2007-12-02 22:10:26');</query>
Expand Down

0 comments on commit 9b6786f

Please sign in to comment.