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
d2c9c9bc
Commit
d2c9c9bc
authored
Dec 13, 2004
by
Leigh B. Stoller
Browse files
Add conversion factor to floorimages table that specifies pixels per
meter for the image.
parent
0a60aafe
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
d2c9c9bc
...
...
@@ -435,6 +435,7 @@ CREATE TABLE floorimages (
x2
int
(
6
)
NOT
NULL
default
'0'
,
y2
int
(
6
)
NOT
NULL
default
'0'
,
scale
tinyint
(
4
)
NOT
NULL
default
'1'
,
pixels_per_meter
float
(
10
,
3
)
NOT
NULL
default
'0.000'
,
PRIMARY
KEY
(
building
,
floor
,
scale
)
)
TYPE
=
MyISAM
;
...
...
sql/database-migrate.txt
View file @
d2c9c9bc
...
...
@@ -2184,3 +2184,9 @@ last_net_act,last_cpu_act,last_ext_act);
and update the default rules:
mysql tbdb < fwrules-create.sql
1.289: Add conversion factor floorimages that converts from pixels to
meters.
alter table floorimages add pixels_per_meter float(10,3) \
NOT NULL default '0.000' after scale;
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