@@ -101,12 +101,17 @@ - (id)init
101
101
// is derived automatically. While most keys can be automatically converted without
102
102
// any difficulty, some keys differ slightly in mysql column storage to GRANT syntax;
103
103
// this dictionary provides mappings for those values to ensure consistency.
104
+
105
+ // key is: The name of the actual column in the mysql.users / mysql.db table
106
+ // value is: The "Privilege" value from "SHOW PRIVILEGES" with " " replaced by "_" and "_priv" appended
104
107
privColumnToGrantMap = [@{
105
- @" Grant_priv" : @" Grant_option_priv" ,
106
- @" Show_db_priv" : @" Show_databases_priv" ,
107
- @" Create_tmp_table_priv" : @" Create_temporary_tables_priv" ,
108
- @" Repl_slave_priv" : @" Replication_slave_priv" ,
109
- @" Repl_client_priv" : @" Replication_client_priv" ,
108
+ @" Grant_priv" : @" Grant_option_priv" ,
109
+ @" Show_db_priv" : @" Show_databases_priv" ,
110
+ @" Create_tmp_table_priv" : @" Create_temporary_tables_priv" ,
111
+ @" Repl_slave_priv" : @" Replication_slave_priv" ,
112
+ @" Repl_client_priv" : @" Replication_client_priv" ,
113
+ @" Truncate_versioning_priv" : @" Delete_versioning_rows_priv" , // MariaDB only, 10.3.4 only
114
+ @" Delete_history_priv" : @" Delete_versioning_rows_priv" , // MariaDB only, since 10.3.5
110
115
} retain];
111
116
112
117
schemas = [[NSMutableArray alloc ] init ];
0 commit comments