Commit 7ea21b70 authored by Aurel's avatar Aurel

2008-01-11 aurel

* include most of the column of the catalog in sql table

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18659 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6a8cb6cb
...@@ -73,6 +73,24 @@ CREATE TABLE `worklist_cache` (\n ...@@ -73,6 +73,24 @@ CREATE TABLE `worklist_cache` (\n
`portal_type` VARCHAR(255) NOT NULL,\n `portal_type` VARCHAR(255) NOT NULL,\n
`validation_state` VARCHAR(255) NULL,\n `validation_state` VARCHAR(255) NULL,\n
`simulation_state` VARCHAR(255) NULL,\n `simulation_state` VARCHAR(255) NULL,\n
`parent_uid` BIGINT UNSIGNED default \'0\',\n
`title` varchar(255) default \'\',\n
`opportunity_state` varchar(255) default \'\',\n
`causality_state` varchar(255) default \'\',\n
`invoice_state` varchar(255) default \'\',\n
`payment_state` varchar(255) default \'\',\n
`event_state` varchar(255) default \'\',\n
`immobilisation_state` varchar(255) default \'\',\n
`reference` varchar(255) binary default \'\',\n
`grouping_reference` varchar(255) default \'\',\n
`source_reference` varchar(255) default \'\',\n
`destination_reference` varchar(255) default \'\',\n
`string_index` varchar(255),\n
`int_index` INT,\n
`float_index` real,\n
`has_cell_content` bool,\n
`creation_date` datetime,\n
`modification_date` datetime,\n
KEY `portal_simulation_security` (`portal_type`, `simulation_state`, `security_uid`),\n KEY `portal_simulation_security` (`portal_type`, `simulation_state`, `security_uid`),\n
KEY `portal_simulation_owner` (`portal_type`, `simulation_state`, `owner`),\n KEY `portal_simulation_owner` (`portal_type`, `simulation_state`, `owner`),\n
KEY `portal_validation_security` (`portal_type`, `validation_state`, `security_uid`),\n KEY `portal_validation_security` (`portal_type`, `validation_state`, `security_uid`),\n
...@@ -126,6 +144,24 @@ CREATE TABLE `worklist_cache` (\n ...@@ -126,6 +144,24 @@ CREATE TABLE `worklist_cache` (\n
`portal_type` VARCHAR(255) NOT NULL,\n `portal_type` VARCHAR(255) NOT NULL,\n
`validation_state` VARCHAR(255) NULL,\n `validation_state` VARCHAR(255) NULL,\n
`simulation_state` VARCHAR(255) NULL,\n `simulation_state` VARCHAR(255) NULL,\n
`parent_uid` BIGINT UNSIGNED default \'0\',\n
`title` varchar(255) default \'\',\n
`opportunity_state` varchar(255) default \'\',\n
`causality_state` varchar(255) default \'\',\n
`invoice_state` varchar(255) default \'\',\n
`payment_state` varchar(255) default \'\',\n
`event_state` varchar(255) default \'\',\n
`immobilisation_state` varchar(255) default \'\',\n
`reference` varchar(255) binary default \'\',\n
`grouping_reference` varchar(255) default \'\',\n
`source_reference` varchar(255) default \'\',\n
`destination_reference` varchar(255) default \'\',\n
`string_index` varchar(255),\n
`int_index` INT,\n
`float_index` real,\n
`has_cell_content` bool,\n
`creation_date` datetime,\n
`modification_date` datetime,\n
KEY `portal_simulation_security` (`portal_type`, `simulation_state`, `security_uid`),\n KEY `portal_simulation_security` (`portal_type`, `simulation_state`, `security_uid`),\n
KEY `portal_simulation_owner` (`portal_type`, `simulation_state`, `owner`),\n KEY `portal_simulation_owner` (`portal_type`, `simulation_state`, `owner`),\n
KEY `portal_validation_security` (`portal_type`, `validation_state`, `security_uid`),\n KEY `portal_validation_security` (`portal_type`, `validation_state`, `security_uid`),\n
......
...@@ -29,24 +29,114 @@ ...@@ -29,24 +29,114 @@
<key> <string>_data</string> </key> <key> <string>_data</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>causality_state</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>count</string> </key> <key> <string>count</string> </key>
<value> <value>
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>creation_date</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>destination_reference</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>event_state</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>float_index</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>grouping_reference</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>has_cell_content</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>immobilisation_state</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>int_index</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>invoice_state</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>modification_date</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>opportunity_state</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>owner</string> </key> <key> <string>owner</string> </key>
<value> <value>
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>parent_uid</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>payment_state</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <value>
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>reference</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>security_uid</string> </key> <key> <string>security_uid</string> </key>
<value> <value>
...@@ -59,6 +149,24 @@ ...@@ -59,6 +149,24 @@
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>source_reference</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>string_index</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <value>
...@@ -78,6 +186,24 @@ ...@@ -78,6 +186,24 @@
<string>simulation_state</string> <string>simulation_state</string>
<string>validation_state</string> <string>validation_state</string>
<string>owner</string> <string>owner</string>
<string>parent_uid</string>
<string>title</string>
<string>opportunity_state</string>
<string>causality_state</string>
<string>invoice_state</string>
<string>payment_state</string>
<string>event_state</string>
<string>immobilisation_state</string>
<string>reference</string>
<string>grouping_reference</string>
<string>source_reference</string>
<string>destination_reference</string>
<string>string_index</string>
<string>int_index</string>
<string>float_index</string>
<string>has_cell_content</string>
<string>creation_date</string>
<string>modification_date</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -93,7 +219,25 @@ security_uid\r\n ...@@ -93,7 +219,25 @@ security_uid\r\n
portal_type\r\n portal_type\r\n
simulation_state\r\n simulation_state\r\n
validation_state\r\n validation_state\r\n
owner</string> </value> owner\r\n
parent_uid\r\n
title\r\n
opportunity_state\r\n
causality_state\r\n
invoice_state\r\n
payment_state\r\n
event_state\r\n
immobilisation_state\r\n
reference\r\n
grouping_reference\r\n
source_reference\r\n
destination_reference\r\n
string_index\r\n
int_index\r\n
float_index\r\n
has_cell_content\r\n
creation_date\r\n
modification_date</string> </value>
</item> </item>
<item> <item>
<key> <string>connection_id</string> </key> <key> <string>connection_id</string> </key>
...@@ -109,7 +253,9 @@ owner</string> </value> ...@@ -109,7 +253,9 @@ owner</string> </value>
INSERT INTO\n INSERT INTO\n
worklist_cache\n worklist_cache\n
(`count`, `owner`, `security_uid`, `portal_type`, `validation_state`, `simulation_state`)\n (`count`, `owner`, `security_uid`, `portal_type`, `validation_state`, `simulation_state`, `parent_uid`, `title`,`opportunity_state`, `causality_state`, `invoice_state`, `payment_state`, `event_state`, `immobilisation_state`, `reference`, `grouping_reference`,\n
`source_reference`, `destination_reference`, `string_index`, `int_index`, `float_index`, `has_cell_content`, `creation_date`,\n
`modification_date`)\n
VALUES\n VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(count))">\n <dtml-in prefix="loop" expr="_.range(_.len(count))">\n
(\n (\n
...@@ -118,7 +264,25 @@ VALUES\n ...@@ -118,7 +264,25 @@ VALUES\n
<dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n <dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n
<dtml-sqlvar expr="portal_type[loop_item]" type="string">,\n <dtml-sqlvar expr="portal_type[loop_item]" type="string">,\n
<dtml-sqlvar expr="validation_state[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="validation_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="simulation_state[loop_item]" type="string" optional>\n <dtml-sqlvar expr="simulation_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="parent_uid[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="title[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="opportunity_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="causality_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="invoice_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="payment_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="event_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="immobilisation_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="reference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="grouping_reference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="source_reference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="destination_reference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="string_index[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="int_index[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="float_index[loop_item]" type="float" optional>,\n
<dtml-sqlvar expr="has_cell_content[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="creation_date[loop_item]" type="datetime" optional>,\n
<dtml-sqlvar expr="modification_date[loop_item]" type="datetime" optional>\n
)\n )\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n <dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in> </dtml-in>
...@@ -163,7 +327,9 @@ VALUES\n ...@@ -163,7 +327,9 @@ VALUES\n
INSERT INTO\n INSERT INTO\n
worklist_cache\n worklist_cache\n
(`count`, `owner`, `security_uid`, `portal_type`, `validation_state`, `simulation_state`)\n (`count`, `owner`, `security_uid`, `portal_type`, `validation_state`, `simulation_state`, `parent_uid`, `title`,`opportunity_state`, `causality_state`, `invoice_state`, `payment_state`, `event_state`, `immobilisation_state`, `reference`, `grouping_reference`,\n
`source_reference`, `destination_reference`, `string_index`, `int_index`, `float_index`, `has_cell_content`, `creation_date`,\n
`modification_date`)\n
VALUES\n VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(count))">\n <dtml-in prefix="loop" expr="_.range(_.len(count))">\n
(\n (\n
...@@ -172,7 +338,25 @@ VALUES\n ...@@ -172,7 +338,25 @@ VALUES\n
<dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n <dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n
<dtml-sqlvar expr="portal_type[loop_item]" type="string">,\n <dtml-sqlvar expr="portal_type[loop_item]" type="string">,\n
<dtml-sqlvar expr="validation_state[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="validation_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="simulation_state[loop_item]" type="string" optional>\n <dtml-sqlvar expr="simulation_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="parent_uid[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="title[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="opportunity_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="causality_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="invoice_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="payment_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="event_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="immobilisation_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="reference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="grouping_reference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="source_reference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="destination_reference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="string_index[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="int_index[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="float_index[loop_item]" type="float" optional>,\n
<dtml-sqlvar expr="has_cell_content[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="creation_date[loop_item]" type="datetime" optional>,\n
<dtml-sqlvar expr="modification_date[loop_item]" type="datetime" optional>\n
)\n )\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n <dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in> </dtml-in>
......
2008-01-11 aurel
* include most of the column of the catalog in sql table
\ 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