Permalink
Browse files

As pointed out in node 4828, the previous commit used ALTER TABLE IF …

…EXISTS which is not valid MySQL syntax. IF EXISTS has been removed.
  • Loading branch information...
1 parent f74beff commit 414b9790ca22e2207ae3ce28e9592790196c9f6a @JonDeG JonDeG committed Jan 13, 2013
Showing with 9 additions and 9 deletions.
  1. +9 −9 public/patch/086-088-a.sql
View
@@ -6,17 +6,17 @@ INSERT INTO `<?php echo $table_prefix ?>config_options` (`category_name`, `name`
INSERT INTO `<?php echo $table_prefix ?>config_options` (`category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES ('authentication', 'authdb password', '', 'PasswordConfigHandler', 0, 3, NULL) ON DUPLICATE KEY UPDATE `name` = `name`;
INSERT INTO `<?php echo $table_prefix ?>config_options` (`category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES ('authentication', 'authdb database', '', 'StringConfigHandler', 0, 3, NULL) ON DUPLICATE KEY UPDATE `name` = `name`;
INSERT INTO `<?php echo $table_prefix ?>config_options` (`category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES ('authentication', 'authdb sql', "select `user_email` as email from `wp_users` where `user_login` = '$username' and user_pass = md5('$password') limit 1", 'StringConfigHandler', 0, 4, NULL);
-ALTER TABLE IF EXISTS `<?php echo $table_prefix ?>wiki_pages` ADD `parent_id` INT( 10 ) NOT NULL DEFAULT 0 AFTER `id`;
+ALTER TABLE `<?php echo $table_prefix ?>wiki_pages` ADD `parent_id` INT( 10 ) NOT NULL DEFAULT 0 AFTER `id`;
CREATE UNIQUE INDEX `subpages` ON `<?php echo $table_prefix ?>wiki_pages` ( `parent_id`, `id` );
INSERT INTO `<?php echo $table_prefix ?>config_options` (`category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES ('general', 'dashboard_logs_count', '50', 'IntegerConfigHandler', 0, 27, NULL) ON DUPLICATE KEY UPDATE `name` = `name`;
INSERT INTO `<?php echo $table_prefix ?>config_options` (`category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES ('general', 'map url', 'http://maps.google.com?q=$location', 'StringConfigHandler', 0, 3, NULL) ON DUPLICATE KEY UPDATE `name` = `name`;
INSERT INTO `<?php echo $table_prefix ?>config_options` (`category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES ('general', 'route url', 'http://maps.google.com?saddr=$from&daddr=$to', 'StringConfigHandler', 0, 3, NULL) ON DUPLICATE KEY UPDATE `name` = `name`;
INSERT INTO `<?php echo $table_prefix ?>config_options` (`category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES ('general', 'parking space reservation url', '', 'StringConfigHandler', 0, 3, NULL) ON DUPLICATE KEY UPDATE `name` = `name`;
-ALTER TABLE IF EXISTS `<?php echo $table_prefix ?>contacts` ADD `first_name` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `display_name`;
-ALTER TABLE IF EXISTS `<?php echo $table_prefix ?>contacts` ADD `middle_name` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `first_name`;
-ALTER TABLE IF EXISTS `<?php echo $table_prefix ?>contacts` ADD `last_name` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `middle_name`;
-ALTER TABLE IF EXISTS `<?php echo $table_prefix ?>contacts` ADD `license_plate` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `home_number`;
-ALTER TABLE IF EXISTS `<?php echo $table_prefix ?>contacts` ADD `food_preferences` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `license_plate`;
-ALTER TABLE IF EXISTS `<?php echo $table_prefix ?>contacts` ADD `department_details` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `food_preferences`;
-ALTER TABLE IF EXISTS `<?php echo $table_prefix ?>contacts` ADD `location_details` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `department_details`;
-ALTER TABLE IF EXISTS `<?php echo $table_prefix ?>contacts` ADD `language_preferences` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `location_details`;
+ALTER TABLE `<?php echo $table_prefix ?>contacts` ADD `first_name` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `display_name`;
+ALTER TABLE `<?php echo $table_prefix ?>contacts` ADD `middle_name` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `first_name`;
+ALTER TABLE `<?php echo $table_prefix ?>contacts` ADD `last_name` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `middle_name`;
+ALTER TABLE `<?php echo $table_prefix ?>contacts` ADD `license_plate` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `home_number`;
+ALTER TABLE `<?php echo $table_prefix ?>contacts` ADD `food_preferences` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `license_plate`;
+ALTER TABLE `<?php echo $table_prefix ?>contacts` ADD `department_details` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `food_preferences`;
+ALTER TABLE `<?php echo $table_prefix ?>contacts` ADD `location_details` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `department_details`;
+ALTER TABLE `<?php echo $table_prefix ?>contacts` ADD `language_preferences` VARCHAR( 50 ) <?php echo $default_charset ?> <?php echo $default_collation ?> NOT NULL DEFAULT '' AFTER `location_details`;

0 comments on commit 414b979

Please sign in to comment.