Commit 6d6bca86 authored by Leigh B Stoller's avatar Leigh B Stoller

Add urlhash and urlstamp to tiplines table to allow for temporary

magic URLs that grant access to console lines.
parent 11f64c77
......@@ -4117,6 +4117,8 @@ CREATE TABLE `tiplines` (
`portnum` int(11) NOT NULL default '0',
`keylen` smallint(6) NOT NULL default '0',
`keydata` text,
`urlhash` varchar(64) default NULL,
`urlstamp` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`tipname`),
KEY `node_id` (`node_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
#
# Add url hash and stamp to tiplines
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (! DBSlotExists("tiplines", "urlhash")) {
DBQueryFatal("alter table tiplines add ".
" `urlhash` varchar(64) default NULL");
}
if (! DBSlotExists("tiplines", "urlhash")) {
DBQueryFatal("alter table tiplines add ".
" `urlstamp` int(10) unsigned NOT NULL default '0'");
}
return 0;
}
1;
# 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