Database table for computing floor locations

This commit is contained in:
dave 2010-02-22 18:45:55 +00:00
parent 1849d0362c
commit 15c9c5619a
2 changed files with 18 additions and 1 deletions

View File

@ -1 +1 @@
164
165

17
db/db.update.165.sql Normal file
View File

@ -0,0 +1,17 @@
ALTER TABLE `projects` ADD `floornumber` INT NOT NULL AFTER `projectsort_seq` ;
CREATE TABLE `exhibithall` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`name` VARCHAR( 32 ) NOT NULL ,
`type` ENUM( 'wall', 'exhibithall', 'project' ) NOT NULL ,
`x` FLOAT NOT NULL ,
`y` FLOAT NOT NULL ,
`w` FLOAT NOT NULL ,
`h` FLOAT NOT NULL ,
`orientation` INT NOT NULL ,
`exhibithall_id` INT NOT NULL ,
`floornumber` INT NOT NULL ,
`divs` TINYTEXT NOT NULL ,
`cats` TINYTEXT NOT NULL ,
`has_electricity` ENUM( 'no', 'yes' ) NOT NULL
) ENGINE = MYISAM ;