Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
9141c149
Commit
9141c149
authored
Nov 30, 2015
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add disabled flag to profile (versions). Code to follow.
parent
ab578286
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
sql/database-fill.sql
sql/database-fill.sql
+1
-0
sql/updates/4/485
sql/updates/4/485
+26
-0
No files found.
sql/database-fill.sql
View file @
9141c149
...
...
@@ -1311,6 +1311,7 @@ REPLACE INTO table_regex VALUES ('apt_profiles','public','int','redirect','defau
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'listed'
,
'int'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'shared'
,
'int'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'topdog'
,
'int'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'disabled'
,
'int'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'description'
,
'text'
,
'redirect'
,
'default:html_fulltext'
,
0
,
512
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'rspec'
,
'text'
,
'redirect'
,
'default:html_fulltext'
,
0
,
262143
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'script'
,
'text'
,
'redirect'
,
'default:html_fulltext'
,
0
,
65535
,
NULL
);
...
...
sql/updates/4/485
0 → 100644
View file @
9141c149
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_profiles", "disabled")) {
DBQueryFatal("alter table apt_profiles add ".
" `disabled` tinyint(1) NOT NULL default '0' ".
" after topdog");
}
if (!DBSlotExists("apt_profile_versions", "disabled")) {
DBQueryFatal("alter table apt_profile_versions add ".
" `disabled` tinyint(1) NOT NULL default '0' ".
" after deleted");
}
DBQueryFatal("REPLACE INTO table_regex VALUES ".
" ('apt_profiles','disabled','int','redirect',".
" 'default:boolean',0,0,NULL)");
return 0;
}
# Local Variables:
# mode:perl
# End:
Write
Preview
Markdown
is supported
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