Commit a215bc61 authored by Kirk Webb's avatar Kirk Webb

Add schema to database-create.sql

parent 078ec98b
......@@ -15,6 +15,19 @@
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `address_ranges`
--
DROP TABLE IF EXISTS `address_ranges`;
CREATE TABLE `address_ranges` (
`baseaddr` varchar(40) NOT NULL default '',
`prefix` tinyint(4) unsigned NOT NULL default '0',
`type` varchar(30) NOT NULL default '',
`role` enum('public','internal') NOT NULL default 'internal',
PRIMARY KEY (`baseaddr`,`prefix`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `accessed_files`
--
......@@ -3657,6 +3670,25 @@ CREATE TABLE `reserved` (
KEY `old_exptidx` (`old_exptidx`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `reserved_addresses`
--
DROP TABLE IF EXISTS `reserved_addresses`;
CREATE TABLE `reserved_addresses` (
`rsrvidx` int(10) unsigned NOT NULL default '0',
`pid` varchar(48) NOT NULL default '',
`eid` varchar(32) NOT NULL default '',
`exptidx` int(10) unsigned NOT NULL default '0',
`rsrv_time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`baseaddr` varchar(40) NOT NULL default '',
`prefix` tinyint(4) unsigned NOT NULL default '0',
`type` varchar(30) NOT NULL default '',
`role` enum('public','internal') NOT NULL default 'internal',
PRIMARY KEY (`rsrvidx`),
UNIQUE KEY `type_base` (`type`,`baseaddr`,`prefix`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `reserved_blockstores`
--
......
......@@ -22,7 +22,7 @@ sub DoUpdate($$$)
" `role` enum('public','internal') ".
" NOT NULL default 'internal', ".
" PRIMARY KEY (`rsrvidx`), ".
" UNIQUE KEY (`baseaddr`,`prefix`) ".
" UNIQUE KEY `type_base` (`type`,`baseaddr`,`prefix`) ".
")");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment