Commit 2066bfd5 authored by Leigh Stoller's avatar Leigh Stoller

Add saved searches, by user. Experimental stuff.

Also commit the DB changes.
parent 6de155ca
......@@ -844,6 +844,21 @@ CREATE TABLE `experiment_template_parameters` (
KEY `pidtid` (`pid`,`tid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `experiment_template_searches`
--
DROP TABLE IF EXISTS `experiment_template_searches`;
CREATE TABLE `experiment_template_searches` (
`parent_guid` varchar(16) NOT NULL default '',
`parent_vers` smallint(5) unsigned NOT NULL default '0',
`uid_idx` mediumint(8) unsigned NOT NULL default '0',
`name` varchar(64) NOT NULL default '',
`expr` mediumtext,
`created` datetime default NULL,
PRIMARY KEY (`parent_guid`,`parent_vers`,`uid_idx`,`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `experiment_template_settings`
--
......
......@@ -909,13 +909,12 @@ REPLACE INTO table_regex VALUES ('os_info','osfeatures','text','regex','^[-\\w,]
REPLACE INTO table_regex VALUES ('os_info','op_mode','text','regex','^[-\\w]*$',1,20,NULL);
REPLACE INTO table_regex VALUES ('os_info','nextosid','text','redirect','os_info:osid',0,0,NULL);
REPLACE INTO table_regex VALUES ('os_info','reboot_waittime','int','redirect','default:int',0,2000,NULL);
REPLACE INTO table_regex VALUES ('sitevariables','name','text','regex','^[\\w\\/]+$',1,255,NULL);
REPLACE INTO table_regex VALUES ('sitevariables','value','text','redirect','default:text',0,0,NULL);
REPLACE INTO table_regex VALUES ('sitevariables','reset','text','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('sitevariables','defaultvalue','text','redirect','default:text',0,0,NULL);
REPLACE INTO table_regex VALUES ('sitevariables','description','text','redirect','default:text',0,0,NULL);
REPLACE INTO table_regex VALUES ('experiment_template_searches','name','text','regex','^[-\\w]*$',2,64,NULL);
--
-- Dumping data for table `testsuite_preentables`
--
......
......@@ -4170,3 +4170,14 @@ last_net_act,last_cpu_act,last_ext_act);
alter table images add `access_key` varchar(64) default NULL;
4.133: Add a table to save template searches.
CREATE TABLE `experiment_template_searches` (
`parent_guid` varchar(16) NOT NULL default '',
`parent_vers` smallint(5) unsigned NOT NULL default '0',
`uid_idx` mediumint(8) unsigned NOT NULL default '0',
`name` varchar(64) NOT NULL default '',
`expr` mediumtext,
`created` datetime default NULL,
PRIMARY KEY (`parent_guid`,`parent_vers`,`uid_idx`,`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
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