Commit 7b02f039 authored by Aurel's avatar Aurel

add index in stock table

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17163 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f4e138b
...@@ -128,7 +128,9 @@ CREATE TABLE `stock` (\n ...@@ -128,7 +128,9 @@ CREATE TABLE `stock` (\n
KEY `simulation_state` (`simulation_state`),\n KEY `simulation_state` (`simulation_state`),\n
KEY `resource_node_uid` (`resource_uid`, `node_uid`),\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 KEY `resource_payment_state` (`resource_uid`, `payment_uid`, `simulation_state`),\n
KEY `resource_payment` (`resource_uid`, `payment_uid`),\n
KEY `resource_payment_state_date` (`resource_uid`, `payment_uid`, `simulation_state`, `date`)\n
) TYPE = InnoDB;\n ) TYPE = InnoDB;\n
</string> </value> </string> </value>
</item> </item>
...@@ -200,7 +202,9 @@ CREATE TABLE `stock` (\n ...@@ -200,7 +202,9 @@ CREATE TABLE `stock` (\n
KEY `simulation_state` (`simulation_state`),\n KEY `simulation_state` (`simulation_state`),\n
KEY `resource_node_uid` (`resource_uid`, `node_uid`),\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 KEY `resource_payment_state` (`resource_uid`, `payment_uid`, `simulation_state`),\n
KEY `resource_payment` (`resource_uid`, `payment_uid`),\n
KEY `resource_payment_state_date` (`resource_uid`, `payment_uid`, `simulation_state`, `date`)\n
) TYPE = InnoDB;\n ) TYPE = InnoDB;\n
</string> </value> </string> </value>
</item> </item>
......
369 371
\ No newline at end of file \ 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