Commit f14c93af authored by Ryan Jackson's avatar Ryan Jackson

Add subboss_images table to database

parent 5bd99aef
......@@ -1460,6 +1460,22 @@ CREATE TABLE `image_history` (
KEY `rsrcidx` (`rsrcidx`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `subboss_images`
--
DROP TABLE IF EXISTS `subboss_images`;
CREATE TABLE `subboss_images` (
`subboss_id` varchar(32) NOT NULL default '',
`imageid` int(8) unsigned NOT NULL default '0',
`load_address` text,
`frisbee_pid` int(11) default '0',
`load_busy` tinyint(4) NOT NULL default '0',
`sync` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`subboss_id`,`imageid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `images`
--
......
#
# Add subboss_images table
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("subboss_images")) {
DBQueryFatal("CREATE TABLE `subboss_images` ( ".
"`subboss_id` varchar(32) NOT NULL default '' " .
"`imageid` int(8) unsigned NOT NULL default '0' " .
"`load_address` text " .
"`frisbee_pid` int(11) default '0' " .
"`load_busy` tinyint(4) NOT NULL default '0' ".
"`sync` tinyint(4) NOT NULL default '0' ".
" PRIMARY KEY (`subboss_id`,`imageid`), ".
") 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