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

Add profile_converted to apt_profile_versions for tracking profiles that

have been machine converted from rspecs to geni-lib scripts.
parent bf336f5d
......@@ -439,6 +439,7 @@ CREATE TABLE `apt_profile_versions` (
`reponame` varchar(40) default NULL,
`repohash` varchar(64) default NULL,
`repokey` varchar(64) default NULL,
`portal_converted` tinyint(1) NOT NULL default '0',
`rspec` mediumtext,
`script` mediumtext,
`paramdefs` mediumtext,
......
......@@ -1338,7 +1338,7 @@ REPLACE INTO table_regex VALUES ('apt_profiles','rspec','text','redirect','defau
REPLACE INTO table_regex VALUES ('apt_profiles','script','text','redirect','default:html_fulltext',0,65535,NULL);
REPLACE INTO table_regex VALUES ('apt_profiles','repourl','text','redirect','default:tinytext',0,0,NULL);
REPLACE INTO table_regex VALUES ('apt_profiles','repohash','text','regex','^[\\w]+$',0,64,NULL);
REPLACE INTO table_regex VALUES ('apt_profiles','portal_converted','int','redirect','default:boolean',0,0,NULL);
--
-- Dumping data for table `testsuite_preentables`
--
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_profile_versions", "portal_converted")) {
DBQueryFatal("alter table apt_profile_versions " .
" `portal_converted` tinyint(1) NOT NULL default '0' ".
" after repokey");
}
DBQueryFatal("REPLACE INTO table_regex VALUES ".
" ('apt_profiles','portal_converted','int','redirect',".
" 'default:boolean',0,0,NULL)");
return 0;
}
# Local Variables:
# mode:perl
# End:
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