Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7d09baee
Commit
7d09baee
authored
Jan 12, 2006
by
Leigh B. Stoller
Browse files
DB support for letting users specify archive tags and the message.
parent
9ea4ddc2
Changes
3
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
7d09baee
...
...
@@ -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
;
...
...
sql/database-fill.sql
View file @
7d09baee
...
...
@@ -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`
...
...
sql/database-migrate.txt
View file @
7d09baee
...
...
@@ -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;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment