1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Removed no longer needed RoleHostFK as it is not used to link to a Role.

Also removed code that loads that column into memory.
This commit is contained in:
Vicențiu Ciorbaru
2013-10-17 15:06:09 -07:00
committed by Sergei Golubchik
parent ee1e66468f
commit 071c4ce88b
2 changed files with 9 additions and 17 deletions

View File

@ -44,10 +44,7 @@ set @had_user_table= @@warning_count != 0;
CREATE TABLE IF NOT EXISTS roles_mapping (
HostFk char(60) binary DEFAULT '' NOT NULL,
UserFk char(16) binary DEFAULT '' NOT NULL,
RoleHostFK char(60) binary DEFAULT '' NOT NULL,
RoleUserFk char(16) binary DEFAULT '' NOT NULL,
CONSTRAINT FOREIGN KEY (HostFk, UserFk) REFERENCES user (Host, User),
CONSTRAINT FOREIGN KEY (RoleHostFk, RoleUserFk) REFERENCES user (Host, User)
RoleFk char(16) binary DEFAULT '' NOT NULL
);