572 486 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#
# Add sitevariable that controls use of disk types for local blockstores.
#
use strict;
use libdb;

sub DoUpdate($$$)
{
    my ($dbhandle, $dbname, $version) = @_;
    
    DBQueryFatal("INSERT INTO `sitevariables` VALUES ".
		 "('storage/local/disktypes',NULL,'Any',".
		 "'Types of local disks used to provision blockstores. ".
		 "One of: any, hdd-only, ssd-only.',0)")
	if (!TBSiteVarExists("storage/local/disktypes"));
    return 0;
}

1;

# Local Variables:
# mode:perl
# End: