Skip to content
GitLab
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
6d22c601
Commit
6d22c601
authored
Nov 16, 2014
by
Leigh B Stoller
Browse files
Merge branch 'mymaster'
parents
62fbdd5a
629424bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
6d22c601
...
...
@@ -76,6 +76,8 @@ CREATE TABLE `apt_datasets` (
`type`
enum
(
'stdataset'
,
'ltdataset'
,
'unknown'
)
NOT
NULL
default
'unknown'
,
`fstype`
varchar
(
40
)
NOT
NULL
default
'none'
,
`size`
int
(
10
)
unsigned
NOT
NULL
default
'0'
,
`public`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`shared`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`locked`
datetime
default
NULL
,
`locker_pid`
int
(
11
)
default
'0'
,
PRIMARY
KEY
(
`idx`
),
...
...
sql/updates/4/414
0 → 100644
View file @
6d22c601
#
# Modify datasets table.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_datasets", "public")) {
DBQueryFatal("alter table apt_datasets add ".
" `public` tinyint(1) NOT NULL default '0' ".
" after size");
}
if (!DBSlotExists("apt_datasets", "shared")) {
DBQueryFatal("alter table apt_datasets add ".
" `shared` tinyint(1) NOT NULL default '0' ".
" after public");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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