Commit 7d09baee authored by Leigh B. Stoller's avatar Leigh B. Stoller

DB support for letting users specify archive tags and the message.

parent 9ea4ddc2
......@@ -38,6 +38,8 @@ CREATE TABLE archive_tags (
archive_idx int(10) unsigned NOT NULL default '0',
view varchar(64) NOT NULL default '',
date_created int(10) unsigned NOT NULL default '0',
tagtype enum('user','commit','savepoint','internal') NOT NULL default 'internal',
description text,
PRIMARY KEY (idx),
UNIQUE KEY tag (tag,archive_idx,view)
) TYPE=MyISAM;
......
......@@ -760,6 +760,8 @@ REPLACE INTO table_regex VALUES ('mailman_listnames','listname','text','regex','
REPLACE INTO table_regex VALUES ('default','fulltext','text','regex','^[\\040-\\176\\012\\015\\011]*$',0,20000,NULL);
REPLACE INTO table_regex VALUES ('node_attributes','attrkey','text','regex','^[-\\w]+$',1,32,NULL);
REPLACE INTO table_regex VALUES ('node_attributes','attrvalue','text','regex','^[-\\w\\.+,\\s]+$',0,255,NULL);
REPLACE INTO table_regex VALUES ('archive_tags','description','text','redirect','default:text',1,512,NULL);
REPLACE INTO table_regex VALUES ('archive_tags','tagtype','text','regex','^(user|commit|savepoint|internal)$',0,0,NULL);
--
-- Dumping data for table `testsuite_preentables`
......
......@@ -3097,3 +3097,8 @@ last_net_act,last_cpu_act,last_ext_act);
rename table archive_tags TO archive_tags_old, \
archive_tags_new TO archive_tags;
4.29: Add more fields to archive_tags table.
alter table archive_tags add tagtype enum('user','commit',\
'savepoint','internal') NOT NULL default 'internal';
alter table archive_tags add description text;
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