mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/SQL: Explicitly set the auth.account-table to use the INNODB-engine (to allow foreign keys and transactions)
If you have an OLD database (auth), and RBAC SQL-alterations, make SURE that it's InnoDB, otherwise run this (it can be run multiple times anyway) (The only change added is to alter the table to explicitly be an InnoDB-table)
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
-- Explicitly set the account-table to use INNODB-engine (to allow foreign keys and transactions)
|
||||
ALTER TABLE account ENGINE=InnoDB;
|
||||
|
||||
-- Delete bad data from the DB before adding foreign keys
|
||||
DELETE FROM `account_access` WHERE `id` NOT IN (SELECT `id` FROM `account`);
|
||||
|
||||
|
||||
2
sql/updates/auth/2013_02_05_00_auth_account.sql
Normal file
2
sql/updates/auth/2013_02_05_00_auth_account.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- Explicitly set the account-table to use INNODB-engine (to allow foreign keys and transactions)
|
||||
ALTER TABLE account ENGINE=InnoDB;
|
||||
Reference in New Issue
Block a user