Commit 2c3597b7 authored by Sebastien Robin's avatar Sebastien Robin

Add an index on stock table which is used when computing bank account position, for example.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15402 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d502d266
......@@ -127,7 +127,8 @@ CREATE TABLE `stock` (\n
KEY `resource_uid` (`resource_uid`),\n
KEY `simulation_state` (`simulation_state`),\n
KEY `resource_node_uid` (`resource_uid`, `node_uid`),\n
KEY `resource_section_node_uid` (`resource_uid`, `section_uid`, `node_uid`, `simulation_state`)\n
KEY `resource_section_node_uid` (`resource_uid`, `section_uid`, `node_uid`, `simulation_state`),\n
KEY `resource_payment_state` (`resource_uid`, `payment_uid`, `simulation_state`)\n
) TYPE = InnoDB;\n
</string> </value>
</item>
......@@ -198,7 +199,8 @@ CREATE TABLE `stock` (\n
KEY `resource_uid` (`resource_uid`),\n
KEY `simulation_state` (`simulation_state`),\n
KEY `resource_node_uid` (`resource_uid`, `node_uid`),\n
KEY `resource_section_node_uid` (`resource_uid`, `section_uid`, `node_uid`, `simulation_state`)\n
KEY `resource_section_node_uid` (`resource_uid`, `section_uid`, `node_uid`, `simulation_state`),\n
KEY `resource_payment_state` (`resource_uid`, `payment_uid`, `simulation_state`)\n
) TYPE = InnoDB;\n
</string> </value>
</item>
......
325
\ No newline at end of file
327
\ No newline at end of file
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