Commit 0c6abbd1 authored by Leigh B Stoller's avatar Leigh B Stoller

Add a key (urn) to geni_authorities.

Add a creator_urn slot to geni_slices.
parent 1a8a1c97
#
# Add a URN field to the certificate table.
#
use strict;
use GeniDB;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBSetDefault($dbhandle);
DBQueryFatal("ALTER TABLE `geni_authorities` " .
"add unique key `urn` (`urn`(256))");
DBQueryFatal("ALTER TABLE `geni_slices` " .
"ADD COLUMN `creator_urn` tinytext after creator_uuid")
unless DBSlotExists("geni_slices", "creator_urn");
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