Browse Source

Merge pull request #980 from Oldiesmann/release-2.1

! Don't complain if the alerts table already exists
Michael Eshom 11 years ago
parent
commit
f7d1a3adc1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      other/upgrade_2-1_mysql.sql

+ 1 - 1
other/upgrade_2-1_mysql.sql

@@ -251,7 +251,7 @@ ADD COLUMN alerts int(10) unsigned NOT NULL default '0';
 ---#
 
 ---# Adding the new table for alerts.
-CREATE TABLE {$db_prefix}user_alerts (
+CREATE TABLE IF NOT EXISTS {$db_prefix}user_alerts (
   id_alert int(10) unsigned NOT NULL auto_increment,
   alert_time int(10) unsigned NOT NULL default '0',
   id_member mediumint(10) unsigned NOT NULL default '0',