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
07773e6d
Commit
07773e6d
authored
Feb 27, 2017
by
Leigh B Stoller
Browse files
Finish up adding nodelete flag to apt_profiles.
parent
e6e76ced
Changes
3
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
07773e6d
...
...
@@ -444,6 +444,7 @@ CREATE TABLE `apt_profiles` (
`topdog`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`no_image_versions`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`disabled`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`nodelete`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`locked`
datetime
default
NULL
,
`locker_pid`
int
(
11
)
default
'0'
,
PRIMARY
KEY
(
`profileid`
),
...
...
sql/database-fill.sql
View file @
07773e6d
...
...
@@ -1332,6 +1332,7 @@ REPLACE INTO table_regex VALUES ('apt_profiles','listed','int','redirect','defau
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'
,
'nodelete'
,
'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/566
0 → 100644
View file @
07773e6d
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_profiles", "nodelete")) {
DBQueryFatal("alter table apt_profiles add ".
" `nodelete` tinyint(1) NOT NULL default '0' ".
" after disabled");
}
DBQueryFatal("REPLACE INTO table_regex VALUES ".
" ('apt_profiles','nodelete','int','redirect',".
" 'default:boolean',0,0,NULL)");
return 0;
}
# Local Variables:
# mode:perl
# End:
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