From 15c9c5619a5f39147ead580c863ce367ef2388c9 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 22 Feb 2010 18:45:55 +0000 Subject: [PATCH] Database table for computing floor locations --- db/db.code.version.txt | 2 +- db/db.update.165.sql | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 db/db.update.165.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 4e9bdff..9e42f3e 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -164 +165 diff --git a/db/db.update.165.sql b/db/db.update.165.sql new file mode 100644 index 0000000..97a9744 --- /dev/null +++ b/db/db.update.165.sql @@ -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 ;