summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <cvicentiu@gmail.com>2013-10-18 09:25:42 -0700
committerSergei Golubchik <sergii@pisem.net>2013-10-18 09:25:42 -0700
commit60f19cbc9aa425ab5606383f81829d54643f4fd8 (patch)
tree6e282a31f81d4ec33e68fb8bb9a198068ade4f31 /scripts
parentdf48f63684e3439eae7f4fdf77c995ed7112d792 (diff)
downloadmariadb-git-60f19cbc9aa425ab5606383f81829d54643f4fd8.tar.gz
Added GRANT ROLE TO ... and REVOKE ROLE FROM ... functionality.
TODO: Privilege checks are not done upon executing the command.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysql_system_tables.sql3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/mysql_system_tables.sql b/scripts/mysql_system_tables.sql
index 30bea5d9b0f..7f85cb409f3 100644
--- a/scripts/mysql_system_tables.sql
+++ b/scripts/mysql_system_tables.sql
@@ -41,8 +41,7 @@ CREATE TABLE IF NOT EXISTS user ( Host char(60) binary DEFAULT '' NOT NULL, Us
-- Remember for later if user table already existed
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, RoleFk char(16) binary DEFAULT '' NOT NULL);
-
+CREATE TABLE IF NOT EXISTS roles_mapping (HostFk char(60) binary DEFAULT '' NOT NULL, UserFk char(16) binary DEFAULT '' NOT NULL, RoleFk char(16) binary DEFAULT '' NOT NULL, unique index (HostFk, UserFk, RoleFk));
CREATE TABLE IF NOT EXISTS func ( name char(64) binary DEFAULT '' NOT NULL, ret tinyint(1) DEFAULT '0' NOT NULL, dl char(128) DEFAULT '' NOT NULL, type enum ('function','aggregate') COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (name) ) engine=MyISAM CHARACTER SET utf8 COLLATE utf8_bin comment='User defined functions';