conan513 / SingleCore_TC

TrinityCore Open Source MMO Framework
http://www.trinitycore.org
GNU General Public License v2.0
180 stars 67 forks source link

2016_07_17_Minions-world-creature_template_outfits.sql #71

Open Talmeron opened 7 years ago

Talmeron commented 7 years ago

2016_07_17_Minions-world-creature_template_outfits.sql Line 66, Usual error saying Syntax bad.

Current behaviour: Dies

Expected behaviour: Doesn't die ;)

Steps to reproduce the problem:

  1. Auto load SQL updates from fresh DB April 2016 .

Branch(es): 335

TC hash/commit: Lastest as of Yesterday.

Operating system: Ubuntu

conan513 commented 7 years ago

hmm strange but it's working for me with mariaDB 10.1.22

Tedris commented 7 years ago

MySQL has an issue with IF NOT EXISTS, you need to comment out at least that line or use MariaDB instead.

Tedris commented 7 years ago

Specifically the issue is in adding the primary key if not exists, that throws an error in MySQL but not in MariaDB.

t880216t commented 7 years ago

I delete this sql ,it can be done . ALTER TABLEcreature_template_outfits ADD PRIMARY KEY IF NOT EXISTS (entry);