Commit 27bf089d authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_mysql_innodb_catalog: add local roles group id

parent 1bb7896c
...@@ -57,15 +57,15 @@ ...@@ -57,15 +57,15 @@
<dtml-let row_list="[]">\n <dtml-let row_list="[]">\n
<dtml-in prefix="loop" expr="_.range(_.len(optimised_roles_and_users))">\n <dtml-in prefix="loop" expr="_.range(_.len(optimised_roles_and_users))">\n
<dtml-in prefix="role" expr="optimised_roles_and_users[loop_item]">\n <dtml-in prefix="role" expr="optimised_roles_and_users[loop_item]">\n
<dtml-call expr="row_list.append([role_item[0], role_item[2]])">\n <dtml-call expr="row_list.append([role_item[0], role_item[1], role_item[2]])">\n
</dtml-in>\n </dtml-in>\n
</dtml-in>\n </dtml-in>\n
<dtml-if expr="row_list">\n <dtml-if expr="row_list">\n
INSERT INTO\n INSERT INTO\n
roles_and_users(uid, allowedRolesAndUsers)\n roles_and_users(uid, local_roles_group_id, allowedRolesAndUsers)\n
VALUES\n VALUES\n
<dtml-in prefix="row" expr="row_list">\n <dtml-in prefix="row" expr="row_list">\n
(<dtml-sqlvar expr="row_item[0]" type="string">, <dtml-sqlvar expr="row_item[1]" type="string">)\n (<dtml-sqlvar expr="row_item[0]" type="string">, <dtml-sqlvar expr="row_item[1]" type="string">, <dtml-sqlvar expr="row_item[2]" type="string">)\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n <dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n </dtml-in>\n
</dtml-if>\n </dtml-if>\n
......
...@@ -60,9 +60,11 @@ ...@@ -60,9 +60,11 @@
<key> <string>src</string> </key> <key> <string>src</string> </key>
<value> <string>CREATE TABLE roles_and_users (\n <value> <string>CREATE TABLE roles_and_users (\n
uid INT UNSIGNED,\n uid INT UNSIGNED,\n
local_roles_group_id VARCHAR(255) default \'\',\n
allowedRolesAndUsers VARCHAR(255),\n allowedRolesAndUsers VARCHAR(255),\n
KEY `uid` (`uid`),\n KEY `uid` (`uid`),\n
KEY `allowedRolesAndUsers` (`allowedRolesAndUsers`)\n KEY `allowedRolesAndUsers` (`allowedRolesAndUsers`),\n
KEY `local_roles_group_id` (`local_roles_group_id`)\n
) ENGINE=InnoDB;\n ) ENGINE=InnoDB;\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
SELECT\n SELECT\n
DISTINCT uid\n DISTINCT uid, local_roles_group_id\n
FROM \n FROM \n
roles_and_users\n roles_and_users\n
WHERE \n WHERE \n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment