From 9b6786ffab9f9df290d004d0259a60daa8a36906 Mon Sep 17 00:00:00 2001 From: mattpascoe Date: Tue, 9 Oct 2012 20:50:38 -0600 Subject: [PATCH] Updating ipv6 branch to perform upgrades to tables for ipv6 data. Should be non destructive. --- install/10-to-11.xml | 12 ++++++++++++ install/ona-data.xml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 install/10-to-11.xml diff --git a/install/10-to-11.xml b/install/10-to-11.xml new file mode 100644 index 00000000..328fcf93 --- /dev/null +++ b/install/10-to-11.xml @@ -0,0 +1,12 @@ + + + + ALTER TABLE `blocks` CHANGE `ip_addr_start` `ip_addr_start` DECIMAL( 39, 0 ) UNSIGNED NOT NULL; + ALTER TABLE `blocks` CHANGE `ip_addr_end` `ip_addr_end` DECIMAL( 39, 0 ) UNSIGNED NOT NULL; + ALTER TABLE `subnets` CHANGE `ip_addr` `ip_addr` DECIMAL( 39, 0 ) UNSIGNED NOT NULL; + ALTER TABLE `subnets` CHANGE `ip_mask` `ip_mask` DECIMAL( 39, 0 ) UNSIGNED NOT NULL; + ALTER TABLE `interfaces` CHANGE `ip_addr` `ip_addr` DECIMAL( 39, 0 ) UNSIGNED NOT NULL; + + + + diff --git a/install/ona-data.xml b/install/ona-data.xml index 6cc1934d..9d2abffc 100644 --- a/install/ona-data.xml +++ b/install/ona-data.xml @@ -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); +('upgrade_index', '11', 'Tracks current upgrade index, used to perform database upgrades.', '', '', 0, 0); 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');