Commit b66f16c1 authored by Leigh B Stoller's avatar Leigh B Stoller

Add missing DB table definition. Better late then never.

parent ed69a9bf
......@@ -3294,6 +3294,23 @@ CREATE TABLE `table_regex` (
UNIQUE KEY `table_name` (`table_name`,`column_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `template_stamps`
--
CREATE TABLE `template_stamps` (
`guid` varchar(16) NOT NULL default '',
`vers` smallint(5) unsigned NOT NULL default '0',
`id` smallint(5) unsigned NOT NULL auto_increment,
`instance` int(10) unsigned default NULL,
`stamp_type` varchar(32) NOT NULL default '',
`modifier` varchar(32) default NULL,
`stamp` int(10) unsigned default NULL,
`aux_type` varchar(32) default NULL,
`aux_data` float default '0',
PRIMARY KEY (`guid`,`vers`,`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `testbed_stats`
--
......
#
# Add missing table.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("template_stamps")) {
DBQueryFatal("CREATE TABLE `template_stamps` ( ".
" `guid` varchar(16) NOT NULL default '', ".
" `vers` smallint(5) unsigned NOT NULL default '0', ".
" `id` smallint(5) unsigned NOT NULL auto_increment, ".
" `instance` int(10) unsigned default NULL, ".
" `stamp_type` varchar(32) NOT NULL default '', ".
" `modifier` varchar(32) default NULL, ".
" `stamp` int(10) unsigned default NULL, ".
" `aux_type` varchar(32) default NULL, ".
" `aux_data` float default '0', ".
" PRIMARY KEY (`guid`,`vers`,`id`) ".
") ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
return 0;
}
1;
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