summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/admin/register_db_tables.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/admin/register_db_tables.php b/includes/admin/register_db_tables.php
index 8080578..8b5f044 100644
--- a/includes/admin/register_db_tables.php
+++ b/includes/admin/register_db_tables.php
@@ -348,10 +348,10 @@ if ( !function_exists( "giglog_register_db_tables") )
ADD COLUMN IF NOT EXISTS
`wpgconcert_type` INT NOT NULL DEFAULT '1' COMMENT '1 concert, 2 festival';");
$wpdb->query(
- "ALTER TABLE `wpg_concerts` DROP INDEX `wpgconcert_band`;");
+ "ALTER TABLE `wpg_concerts` DROP INDEX IF EXISTS `wpgconcert_band`;");
$wpdb->query(
- "ALTER TABLE `wpg_concerts` DROP FOREIGN KEY `wpgconcert_band`;");
+ "ALTER TABLE `wpg_concerts` DROP FOREIGN KEY IF EXISTS `wpgconcert_band`;");
}
if ($db_version == NULL || $db_version < 6)