Commit 323cf849 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Commit new apt_profile_images table so Mike can build an elabinelab.

parent c1673a5b
......@@ -363,6 +363,30 @@ CREATE TABLE `apt_profile_favorites` (
PRIMARY KEY (`uid_idx`,`profileid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `apt_profile_images`
--
DROP TABLE IF EXISTS `apt_profile_images`;
CREATE TABLE `apt_profile_images` (
`name` varchar(64) NOT NULL default '',
`profileid` int(10) unsigned NOT NULL default '0',
`version` int(8) unsigned NOT NULL default '0',
`pid` varchar(48) NOT NULL default '',
`pid_idx` mediumint(8) unsigned NOT NULL default '0',
`gid` varchar(32) NOT NULL default '',
`gid_idx` mediumint(8) unsigned NOT NULL default '0',
`client_id` varchar(32) NOT NULL default '',
`authority` varchar(64) default NULL,
`ospid` varchar(64) default NULL,
`os` varchar(128) default NULL,
`osvers` int(8) default NULL,
`local_pid` varchar(48) default NULL,
`image` varchar(256) NOT NULL default '',
PRIMARY KEY (`profileid`,`version`,`client_id`),
KEY `image` (`image`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `apt_profile_versions`
--
......
#
# Add apt_profile_images table
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("apt_profile_images")) {
DBQueryFatal("CREATE TABLE `apt_profile_images` ( ".
" `name` varchar(64) NOT NULL default '', ".
" `profileid` int(10) unsigned NOT NULL default '0', ".
" `version` int(8) unsigned NOT NULL default '0', ".
" `pid` varchar(48) NOT NULL default '', ".
" `pid_idx` mediumint(8) unsigned NOT NULL default '0', ".
" `gid` varchar(32) NOT NULL default '', ".
" `gid_idx` mediumint(8) unsigned NOT NULL default '0', ".
" `client_id` varchar(32) NOT NULL default '', ".
" `authority` varchar(64) default NULL, ".
" `ospid` varchar(64) default NULL, ".
" `os` varchar(128) default NULL, ".
" `osvers` int(8) default NULL, ".
" `local_pid` varchar(48) default NULL, ".
" `image` varchar(256) NOT NULL default '', ".
" PRIMARY KEY (`profileid`,`version`,`client_id`), ".
" KEY `image` (`image`) ".
" ) ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
Supports Markdown
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