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 ;