Commit a2ab5013 authored by Romain Courteaud's avatar Romain Courteaud

Update worklist_cache table to follow recent modifications of the catalog table.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19582 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 30b42846
...@@ -68,7 +68,8 @@ DROP TABLE IF EXISTS worklist_cache\n ...@@ -68,7 +68,8 @@ DROP TABLE IF EXISTS worklist_cache\n
<dtml-var sql_delimiter>\n <dtml-var sql_delimiter>\n
CREATE TABLE `worklist_cache` (\n CREATE TABLE `worklist_cache` (\n
`count` INT UNSIGNED NOT NULL,\n `count` INT UNSIGNED NOT NULL,\n
`owner` VARCHAR(32) NOT NULL DEFAULT \'\',\n `owner` VARCHAR(32) DEFAULT \'\',\n
`viewable_owner` VARCHAR(32) NOT NULL DEFAULT \'\',\n
`security_uid` INT UNSIGNED NOT NULL,\n `security_uid` INT UNSIGNED NOT NULL,\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
...@@ -92,9 +93,9 @@ CREATE TABLE `worklist_cache` (\n ...@@ -92,9 +93,9 @@ CREATE TABLE `worklist_cache` (\n
`creation_date` datetime,\n `creation_date` datetime,\n
`modification_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`, `viewable_owner`),\n
KEY `portal_validation_security` (`portal_type`, `validation_state`, `security_uid`),\n KEY `portal_validation_security` (`portal_type`, `validation_state`, `security_uid`),\n
KEY `portal_validation_owner` (`portal_type`, `validation_state`, `owner`)\n KEY `portal_validation_owner` (`portal_type`, `validation_state`, `viewable_owner`)\n
) TYPE=InnoDB; ) TYPE=InnoDB;
]]></string> </value> ]]></string> </value>
...@@ -139,7 +140,8 @@ DROP TABLE IF EXISTS worklist_cache\n ...@@ -139,7 +140,8 @@ DROP TABLE IF EXISTS worklist_cache\n
<dtml-var sql_delimiter>\n <dtml-var sql_delimiter>\n
CREATE TABLE `worklist_cache` (\n CREATE TABLE `worklist_cache` (\n
`count` INT UNSIGNED NOT NULL,\n `count` INT UNSIGNED NOT NULL,\n
`owner` VARCHAR(32) NOT NULL DEFAULT \'\',\n `owner` VARCHAR(32) DEFAULT \'\',\n
`viewable_owner` VARCHAR(32) NOT NULL DEFAULT \'\',\n
`security_uid` INT UNSIGNED NOT NULL,\n `security_uid` INT UNSIGNED NOT NULL,\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
...@@ -163,9 +165,9 @@ CREATE TABLE `worklist_cache` (\n ...@@ -163,9 +165,9 @@ CREATE TABLE `worklist_cache` (\n
`creation_date` datetime,\n `creation_date` datetime,\n
`modification_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`, `viewable_owner`),\n
KEY `portal_validation_security` (`portal_type`, `validation_state`, `security_uid`),\n KEY `portal_validation_security` (`portal_type`, `validation_state`, `security_uid`),\n
KEY `portal_validation_owner` (`portal_type`, `validation_state`, `owner`)\n KEY `portal_validation_owner` (`portal_type`, `validation_state`, `viewable_owner`)\n
) TYPE=InnoDB; ) TYPE=InnoDB;
]]></string> </value> ]]></string> </value>
......
...@@ -173,6 +173,12 @@ ...@@ -173,6 +173,12 @@
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>viewable_owner</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -180,30 +186,31 @@ ...@@ -180,30 +186,31 @@
<key> <string>_keys</string> </key> <key> <string>_keys</string> </key>
<value> <value>
<list> <list>
<string>count</string> <string>count</string>
<string>security_uid</string> <string>security_uid</string>
<string>portal_type</string> <string>portal_type</string>
<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>viewable_owner</string>
<string>title</string> <string>parent_uid</string>
<string>opportunity_state</string> <string>title</string>
<string>causality_state</string> <string>opportunity_state</string>
<string>invoice_state</string> <string>causality_state</string>
<string>payment_state</string> <string>invoice_state</string>
<string>event_state</string> <string>payment_state</string>
<string>immobilisation_state</string> <string>event_state</string>
<string>reference</string> <string>immobilisation_state</string>
<string>grouping_reference</string> <string>reference</string>
<string>source_reference</string> <string>grouping_reference</string>
<string>destination_reference</string> <string>source_reference</string>
<string>string_index</string> <string>destination_reference</string>
<string>int_index</string> <string>string_index</string>
<string>float_index</string> <string>int_index</string>
<string>has_cell_content</string> <string>float_index</string>
<string>creation_date</string> <string>has_cell_content</string>
<string>modification_date</string> <string>creation_date</string>
<string>modification_date</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -220,6 +227,7 @@ portal_type\r\n ...@@ -220,6 +227,7 @@ portal_type\r\n
simulation_state\r\n simulation_state\r\n
validation_state\r\n validation_state\r\n
owner\r\n owner\r\n
viewable_owner\r\n
parent_uid\r\n parent_uid\r\n
title\r\n title\r\n
opportunity_state\r\n opportunity_state\r\n
...@@ -253,7 +261,7 @@ modification_date</string> </value> ...@@ -253,7 +261,7 @@ modification_date</string> </value>
INSERT INTO\n INSERT INTO\n
worklist_cache\n worklist_cache\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 (`count`, `owner`, `viewable_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 `source_reference`, `destination_reference`, `string_index`, `int_index`, `float_index`, `has_cell_content`, `creation_date`,\n
`modification_date`)\n `modification_date`)\n
VALUES\n VALUES\n
...@@ -261,6 +269,7 @@ VALUES\n ...@@ -261,6 +269,7 @@ VALUES\n
(\n (\n
<dtml-sqlvar expr="count[loop_item]" type="int">,\n <dtml-sqlvar expr="count[loop_item]" type="int">,\n
<dtml-sqlvar expr="owner[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="owner[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="viewable_owner[loop_item]" type="string" optional>,\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
...@@ -327,7 +336,7 @@ VALUES\n ...@@ -327,7 +336,7 @@ VALUES\n
INSERT INTO\n INSERT INTO\n
worklist_cache\n worklist_cache\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 (`count`, `owner`, `viewable_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 `source_reference`, `destination_reference`, `string_index`, `int_index`, `float_index`, `has_cell_content`, `creation_date`,\n
`modification_date`)\n `modification_date`)\n
VALUES\n VALUES\n
...@@ -335,6 +344,7 @@ VALUES\n ...@@ -335,6 +344,7 @@ VALUES\n
(\n (\n
<dtml-sqlvar expr="count[loop_item]" type="int">,\n <dtml-sqlvar expr="count[loop_item]" type="int">,\n
<dtml-sqlvar expr="owner[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="owner[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="viewable_owner[loop_item]" type="string" optional>,\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
......
11 17
\ 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