574 523 Bytes
Newer Older
1 2 3 4 5 6 7 8
use strict;
use libdb;

sub DoUpdate($$$)
{
    my ($dbhandle, $dbname, $version) = @_;

    if (!DBSlotExists("apt_profile_versions", "portal_converted")) {
Leigh B Stoller's avatar
Leigh B Stoller committed
9
        DBQueryFatal("alter table apt_profile_versions add " .
10 11 12 13 14 15 16 17 18 19 20 21
		     " `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: