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:
click
2013-02-05 22:20:55 +01:00
parent f205613eb5
commit 00d299f12f
2 changed files with 5 additions and 0 deletions

View File

@@ -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`);

View 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;