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
17ef9b1b
Commit
17ef9b1b
authored
Dec 15, 2005
by
Timothy Stack
Browse files
Add some tables for recording the set of files accessed by an
experiment, still likely to change.
parent
92fc62f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
17ef9b1b
...
...
@@ -4,6 +4,17 @@
---------------------------------------------------------
-- Server version 3.23.58-log
--
-- Table structure for table `accessed_files`
--
CREATE
TABLE
accessed_files
(
fn
text
NOT
NULL
,
idx
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
PRIMARY
KEY
(
fn
(
255
)),
KEY
idx
(
idx
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `archive_tags`
--
...
...
@@ -532,6 +543,21 @@ CREATE TABLE foreign_keys (
PRIMARY
KEY
(
table1
,
column1
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `fs_resources`
--
CREATE
TABLE
fs_resources
(
rsrcidx
int
(
10
)
unsigned
NOT
NULL
default
'0'
,
fileidx
int
(
11
)
unsigned
NOT
NULL
default
'0'
,
exptidx
int
(
10
)
unsigned
NOT
NULL
default
'0'
,
type
enum
(
'r'
,
'w'
,
'rw'
,
'l'
)
default
'r'
,
size
int
(
11
)
unsigned
default
'0'
,
PRIMARY
KEY
(
rsrcidx
,
fileidx
),
KEY
rsrcidx
(
rsrcidx
),
KEY
fileidx
(
fileidx
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `global_policies`
--
...
...
sql/database-migrate.txt
View file @
17ef9b1b
...
...
@@ -2954,3 +2954,24 @@ last_net_act,last_cpu_act,last_ext_act);
alter table experiment_resources add
archive_tag varchar(32) NOT NULL default ''
after delay_capacity;
4.23: [TENTATIVE]
Add tables to store the set of files accessed by an experiment.
CREATE TABLE fs_resources (
rsrcidx int(10) unsigned NOT NULL default '0',
fileidx int(11) unsigned NOT NULL default '0',
exptidx int(10) unsigned NOT NULL default '0',
type enum('r','w','rw','l') default 'r',
size int(11) unsigned default '0',
PRIMARY KEY (rsrcidx,fileidx),
KEY rsrcidx (rsrcidx),
KEY fileidx (fileidx)
) TYPE=MyISAM;
CREATE TABLE accessed_files (
fn text NOT NULL,
idx int(11) unsigned NOT NULL auto_increment,
PRIMARY KEY (fn(255)),
KEY idx (idx)
) TYPE=MyISAM;
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