From e5d03b07a9d0eca1c60fa17dca67e3f9eb848f62 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 24 Feb 2006 17:52:04 +0000 Subject: [PATCH] switch the new database stuff to DB16 instead of 15, and bump the required db number --- db/db.code.version.txt | 2 +- db/db.update.15.sql | 5 +---- db/db.update.16.sql | 4 ++++ 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 db/db.update.16.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 60d3b2f..b6a7d89 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -15 +16 diff --git a/db/db.update.15.sql b/db/db.update.15.sql index 85abce9..9d3ea54 100644 --- a/db/db.update.15.sql +++ b/db/db.update.15.sql @@ -1,5 +1,2 @@ ALTER TABLE `judges` DROP `catpref`, DROP `divpref`; -ALTER TABLE `registrations` ADD `schools_id` INT UNSIGNED DEFAULT NULL ; -CREATE TABLE `signaturepage` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `name` VARCHAR( 32 ) NOT NULL , `use` TINYINT DEFAULT '1' NOT NULL , `text` TEXT NOT NULL , PRIMARY KEY ( `id` )) TYPE = MYISAM ; -INSERT INTO `signaturepage` (`id`, `name`, `use`, `text`) VALUES (1, 'exhibitordeclaration', 1, 'The following section is to be read and signed by the exhibitor(s).\r\n\r\nI/We certify that:\r\n - The preparation of this project is mainly my/our own work.\r\n - I/We have read the rules and regulations and agree to abide by them.\r\n - I/We agree agree that the decision of the judges will be final.'); -INSERT INTO `signaturepage` (`id`, `name`, `use`, `text`) VALUES (2, 'parentdeclaration', 1, 'The following is to be read and signed by the exhibitor(s) parent(s)/guardian(s).\r\nAs a parent/guardian I certify to the best of my knowledge and believe the information contained in this application is correct, and the project is the work of the student. I also understand that the material used in the project is the responsibility of the student and that neither the school, the teacher, nor the regional fair can be held responsible for loss, damage, or theft, however caused. I further understand that all exhibits entered must be left on display until the end of the Fair. If my son/daughter does not remove the exhibit at the end of the Fair, the fair organizers or the owner of the exhibition hall cannot be responsible for the disposal of the exhibit.\r\n\r\nIf my son/daughter is awarded the honour of having his/her exhibit chosen for presentation at the Canada-Wide Science Fair, I consent to having him/her journey to the Fair, and will not hold the Fair responsible for any accident or mishap to the student or the exhibit.'); + diff --git a/db/db.update.16.sql b/db/db.update.16.sql new file mode 100644 index 0000000..e16b42d --- /dev/null +++ b/db/db.update.16.sql @@ -0,0 +1,4 @@ +ALTER TABLE `registrations` ADD `schools_id` INT UNSIGNED DEFAULT NULL ; +CREATE TABLE `signaturepage` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `name` VARCHAR( 32 ) NOT NULL , `use` TINYINT DEFAULT '1' NOT NULL , `text` TEXT NOT NULL , PRIMARY KEY ( `id` )) TYPE = MYISAM ; +INSERT INTO `signaturepage` (`id`, `name`, `use`, `text`) VALUES (1, 'exhibitordeclaration', 1, 'The following section is to be read and signed by the exhibitor(s).\r\n\r\nI/We certify that:\r\n - The preparation of this project is mainly my/our own work.\r\n - I/We have read the rules and regulations and agree to abide by them.\r\n - I/We agree agree that the decision of the judges will be final.'); +INSERT INTO `signaturepage` (`id`, `name`, `use`, `text`) VALUES (2, 'parentdeclaration', 1, 'The following is to be read and signed by the exhibitor(s) parent(s)/guardian(s).\r\nAs a parent/guardian I certify to the best of my knowledge and believe the information contained in this application is correct, and the project is the work of the student. I also understand that the material used in the project is the responsibility of the student and that neither the school, the teacher, nor the regional fair can be held responsible for loss, damage, or theft, however caused. I further understand that all exhibits entered must be left on display until the end of the Fair. If my son/daughter does not remove the exhibit at the end of the Fair, the fair organizers or the owner of the exhibition hall cannot be responsible for the disposal of the exhibit.\r\n\r\nIf my son/daughter is awarded the honour of having his/her exhibit chosen for presentation at the Canada-Wide Science Fair, I consent to having him/her journey to the Fair, and will not hold the Fair responsible for any accident or mishap to the student or the exhibit.');