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-stable
Commits
da74d108
Commit
da74d108
authored
Jan 23, 2005
by
Timothy Stack
Browse files
Add a table for the robot tracking cameras.
parent
74f61a9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
da74d108
...
...
@@ -15,6 +15,25 @@ CREATE TABLE buildings (
PRIMARY
KEY
(
building
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `cameras`
--
CREATE
TABLE
cameras
(
name
varchar
(
32
)
NOT
NULL
default
''
,
building
varchar
(
32
)
NOT
NULL
default
''
,
floor
varchar
(
32
)
NOT
NULL
default
''
,
hostname
varchar
(
255
)
default
NULL
,
port
smallint
(
5
)
unsigned
NOT
NULL
default
'6100'
,
device
varchar
(
64
)
NOT
NULL
default
''
,
loc_x
float
NOT
NULL
default
'0'
,
loc_y
float
NOT
NULL
default
'0'
,
width
float
NOT
NULL
default
'0'
,
height
float
NOT
NULL
default
'0'
,
config
tinytext
,
PRIMARY
KEY
(
name
,
building
,
floor
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `cdroms`
--
...
...
@@ -1317,8 +1336,8 @@ CREATE TABLE plab_slice_nodes (
eid
varchar
(
32
)
NOT
NULL
default
''
,
slicename
varchar
(
64
)
NOT
NULL
default
''
,
node_id
varchar
(
32
)
NOT
NULL
default
''
,
nodemeta
text
,
leaseend
datetime
default
NULL
,
nodemeta
text
,
PRIMARY
KEY
(
node_id
)
)
TYPE
=
MyISAM
;
...
...
sql/database-migrate.txt
View file @
da74d108
...
...
@@ -2395,3 +2395,19 @@ last_net_act,last_cpu_act,last_ext_act);
PRIMARY KEY (uid,policy,auxdata)
) TYPE=MyISAM;
1.308: Add a table for the robot tracking cameras.
CREATE TABLE cameras (
name varchar(32) NOT NULL default '',
building varchar(32) NOT NULL default '',
floor varchar(32) NOT NULL default '',
hostname varchar(255) default NULL,
port smallint(5) unsigned NOT NULL default '6100',
device varchar(64) NOT NULL default '',
loc_x float NOT NULL default '0',
loc_y float NOT NULL default '0',
width float NOT NULL default '0',
height float NOT NULL default '0',
config tinytext,
PRIMARY KEY (name,building,floor)
) 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