Commit 9a9f7396 authored by Sebastien Robin's avatar Sebastien Robin

sql method were modified by Aurelien in order to improve performance

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13619 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a16a183e
......@@ -29,24 +29,12 @@
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>causality_state</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>event_state</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>getCorporateRegistrationCode</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>getCreationDate</string> </key>
<value>
......@@ -65,24 +53,12 @@
<dictionary/>
</value>
</item>
<item>
<key> <string>getEan13Code</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>getFloatIndex</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>getGroupingReference</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>getIntIndex</string> </key>
<value>
......@@ -191,24 +167,12 @@
<dictionary/>
</value>
</item>
<item>
<key> <string>invoice_state</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>meta_type</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>opportunity_state</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>payment_state</string> </key>
<value>
......@@ -244,19 +208,13 @@
<string>getTitle</string>
<string>meta_type</string>
<string>getPortalType</string>
<string>opportunity_state</string>
<string>getCorporateRegistrationCode</string>
<string>getEan13Code</string>
<string>getSimulationState</string>
<string>getSimulationStateTitle</string>
<string>causality_state</string>
<string>invoice_state</string>
<string>getValidationState</string>
<string>getValidationStateTitle</string>
<string>payment_state</string>
<string>event_state</string>
<string>getReference</string>
<string>getGroupingReference</string>
<string>getSourceReference</string>
<string>getDestinationReference</string>
<string>getStringIndex</string>
......@@ -299,19 +257,13 @@ getDescription\r\n
getTitle\r\n
meta_type\r\n
getPortalType\r\n
opportunity_state\r\n
getCorporateRegistrationCode\r\n
getEan13Code\r\n
getSimulationState\r\n
getSimulationStateTitle\r\n
causality_state\r\n
invoice_state\r\n
getValidationState\r\n
getValidationStateTitle\r\n
payment_state\r\n
event_state\r\n
getReference\r\n
getGroupingReference\r\n
getSourceReference\r\n
getDestinationReference\r\n
getStringIndex\r\n
......@@ -361,7 +313,7 @@ getStopDate</string> </value>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
REPLACE INTO\n
REPLACE INTO\n
catalog\n
VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
......@@ -374,26 +326,14 @@ VALUES\n
<dtml-sqlvar expr="id[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getDescription[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getTitle[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="meta_type[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getPortalType[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="opportunity_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getCorporateRegistrationCode[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getEan13Code[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getValidationState[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getValidationStateTitle[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getSimulationState[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getSimulationStateTitle[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="getReference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getGroupingReference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getSourceReference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getDestinationReference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getStringIndex[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getIntIndex[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="getFloatIndex[loop_item]" type="float" optional>,\n
<dtml-sqlvar expr="hasCellContent[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="getCreationDate[loop_item]" type="datetime" optional>,\n
<dtml-sqlvar expr="getModificationDate[loop_item]" type="datetime" optional>,\n
......@@ -401,8 +341,7 @@ VALUES\n
<dtml-sqlvar expr="getStopDate[loop_item]" type="datetime" optional>\n
)\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n
</dtml-in>
]]></string> </value>
</item>
......@@ -442,7 +381,7 @@ VALUES\n
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
REPLACE INTO\n
REPLACE INTO\n
catalog\n
VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
......@@ -455,26 +394,14 @@ VALUES\n
<dtml-sqlvar expr="id[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getDescription[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getTitle[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="meta_type[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getPortalType[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="opportunity_state[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getCorporateRegistrationCode[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getEan13Code[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getValidationState[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getValidationStateTitle[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getSimulationState[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getSimulationStateTitle[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="getReference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getGroupingReference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getSourceReference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getDestinationReference[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getStringIndex[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getIntIndex[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="getFloatIndex[loop_item]" type="float" optional>,\n
<dtml-sqlvar expr="hasCellContent[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="getCreationDate[loop_item]" type="datetime" optional>,\n
<dtml-sqlvar expr="getModificationDate[loop_item]" type="datetime" optional>,\n
......@@ -482,8 +409,7 @@ VALUES\n
<dtml-sqlvar expr="getStopDate[loop_item]" type="datetime" optional>\n
)\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n
</dtml-in>
]]></string> </value>
</item>
......
......@@ -305,10 +305,10 @@ WHERE\n
<dtml-if "isAccountable[loop_item]">\n
<dtml-if "getResourceUid[loop_item]">\n
<dtml-if "getBaobabDestinationUid[loop_item]">\n
<dtml-call expr="row_list.append([uid[loop_item], getBaobabDestinationUid[loop_item], getBaobabDestinationSectionUid[loop_item], getBaobabDestinationPaymentUid[loop_item], getBaobabDestinationFunctionUid[loop_item], getBaobabDestinationProjectUid[loop_item], getBaobabSourceSectionUid[loop_item], getBaobabSourceUid[loop_item], getResourceUid[loop_item], getInventoriatedQuantity[loop_item], getStopDate[loop_item], getStartDate[loop_item], getDestinationInventoriatedTotalAssetPrice[loop_item], getPortalType[loop_item], getSimulationState[loop_item], getBaobabDestinationVariationText[loop_item],getSubVariationText[loop_item]])">\n
<dtml-call expr="row_list.append([uid[loop_item], getBaobabDestinationUid[loop_item], getBaobabDestinationSectionUid[loop_item], getBaobabDestinationPaymentUid[loop_item], getBaobabDestinationFunctionUid[loop_item], getBaobabDestinationProjectUid[loop_item], getBaobabSourceSectionUid[loop_item], getBaobabSourceUid[loop_item], getResourceUid[loop_item], getInventoriatedQuantity[loop_item], getStopDate[loop_item], getDestinationInventoriatedTotalAssetPrice[loop_item], getPortalType[loop_item], getSimulationState[loop_item], getBaobabDestinationVariationText[loop_item],getSubVariationText[loop_item]])">\n
</dtml-if>\n
<dtml-if "getBaobabSourceUid[loop_item]">\n
<dtml-call expr="row_list.append([uid[loop_item], getBaobabSourceUid[loop_item], getBaobabSourceSectionUid[loop_item], getBaobabSourcePaymentUid[loop_item], getBaobabSourceFunctionUid[loop_item], getBaobabSourceProjectUid[loop_item], getBaobabDestinationSectionUid[loop_item], getBaobabDestinationUid[loop_item], getResourceUid[loop_item], -(getInventoriatedQuantity[loop_item] or 0), getStartDate[loop_item], getStopDate[loop_item], getSourceInventoriatedTotalAssetPrice[loop_item], getPortalType[loop_item], getSimulationState[loop_item], getBaobabSourceVariationText[loop_item], getSubVariationText[loop_item]])">\n
<dtml-call expr="row_list.append([uid[loop_item], getBaobabSourceUid[loop_item], getBaobabSourceSectionUid[loop_item], getBaobabSourcePaymentUid[loop_item], getBaobabSourceFunctionUid[loop_item], getBaobabSourceProjectUid[loop_item], getBaobabDestinationSectionUid[loop_item], getBaobabDestinationUid[loop_item], getResourceUid[loop_item], -(getInventoriatedQuantity[loop_item] or 0), getStartDate[loop_item], getSourceInventoriatedTotalAssetPrice[loop_item], getPortalType[loop_item], getSimulationState[loop_item], getBaobabSourceVariationText[loop_item], getSubVariationText[loop_item]])">\n
</dtml-if>\n
</dtml-if>\n
</dtml-if>\n
......@@ -332,12 +332,11 @@ VALUES\n
<dtml-sqlvar expr="row_item[8]" type="int">, \n
<dtml-sqlvar expr="row_item[9]" type="float" optional>,\n
<dtml-sqlvar expr="row_item[10]" type="datetime" optional>,\n
<dtml-sqlvar expr="row_item[11]" type="datetime" optional>,\n
<dtml-sqlvar expr="row_item[12]" type="float" optional>,\n
<dtml-sqlvar expr="row_item[11]" type="float" optional>,\n
<dtml-sqlvar expr="row_item[12]" type="string" optional>,\n
<dtml-sqlvar expr="row_item[13]" type="string" optional>,\n
<dtml-sqlvar expr="row_item[14]" type="string" optional>,\n
<dtml-sqlvar expr="row_item[15]" type="string" optional>,\n
<dtml-sqlvar expr="row_item[16]" type="string" optional>\n
<dtml-sqlvar expr="row_item[15]" type="string" optional>\n
)\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n
......@@ -399,10 +398,10 @@ WHERE\n
<dtml-if "isAccountable[loop_item]">\n
<dtml-if "getResourceUid[loop_item]">\n
<dtml-if "getBaobabDestinationUid[loop_item]">\n
<dtml-call expr="row_list.append([uid[loop_item], getBaobabDestinationUid[loop_item], getBaobabDestinationSectionUid[loop_item], getBaobabDestinationPaymentUid[loop_item], getBaobabDestinationFunctionUid[loop_item], getBaobabDestinationProjectUid[loop_item], getBaobabSourceSectionUid[loop_item], getBaobabSourceUid[loop_item], getResourceUid[loop_item], getInventoriatedQuantity[loop_item], getStopDate[loop_item], getStartDate[loop_item], getDestinationInventoriatedTotalAssetPrice[loop_item], getPortalType[loop_item], getSimulationState[loop_item], getBaobabDestinationVariationText[loop_item],getSubVariationText[loop_item]])">\n
<dtml-call expr="row_list.append([uid[loop_item], getBaobabDestinationUid[loop_item], getBaobabDestinationSectionUid[loop_item], getBaobabDestinationPaymentUid[loop_item], getBaobabDestinationFunctionUid[loop_item], getBaobabDestinationProjectUid[loop_item], getBaobabSourceSectionUid[loop_item], getBaobabSourceUid[loop_item], getResourceUid[loop_item], getInventoriatedQuantity[loop_item], getStopDate[loop_item], getDestinationInventoriatedTotalAssetPrice[loop_item], getPortalType[loop_item], getSimulationState[loop_item], getBaobabDestinationVariationText[loop_item],getSubVariationText[loop_item]])">\n
</dtml-if>\n
<dtml-if "getBaobabSourceUid[loop_item]">\n
<dtml-call expr="row_list.append([uid[loop_item], getBaobabSourceUid[loop_item], getBaobabSourceSectionUid[loop_item], getBaobabSourcePaymentUid[loop_item], getBaobabSourceFunctionUid[loop_item], getBaobabSourceProjectUid[loop_item], getBaobabDestinationSectionUid[loop_item], getBaobabDestinationUid[loop_item], getResourceUid[loop_item], -(getInventoriatedQuantity[loop_item] or 0), getStartDate[loop_item], getStopDate[loop_item], getSourceInventoriatedTotalAssetPrice[loop_item], getPortalType[loop_item], getSimulationState[loop_item], getBaobabSourceVariationText[loop_item], getSubVariationText[loop_item]])">\n
<dtml-call expr="row_list.append([uid[loop_item], getBaobabSourceUid[loop_item], getBaobabSourceSectionUid[loop_item], getBaobabSourcePaymentUid[loop_item], getBaobabSourceFunctionUid[loop_item], getBaobabSourceProjectUid[loop_item], getBaobabDestinationSectionUid[loop_item], getBaobabDestinationUid[loop_item], getResourceUid[loop_item], -(getInventoriatedQuantity[loop_item] or 0), getStartDate[loop_item], getSourceInventoriatedTotalAssetPrice[loop_item], getPortalType[loop_item], getSimulationState[loop_item], getBaobabSourceVariationText[loop_item], getSubVariationText[loop_item]])">\n
</dtml-if>\n
</dtml-if>\n
</dtml-if>\n
......@@ -426,12 +425,11 @@ VALUES\n
<dtml-sqlvar expr="row_item[8]" type="int">, \n
<dtml-sqlvar expr="row_item[9]" type="float" optional>,\n
<dtml-sqlvar expr="row_item[10]" type="datetime" optional>,\n
<dtml-sqlvar expr="row_item[11]" type="datetime" optional>,\n
<dtml-sqlvar expr="row_item[12]" type="float" optional>,\n
<dtml-sqlvar expr="row_item[11]" type="float" optional>,\n
<dtml-sqlvar expr="row_item[12]" type="string" optional>,\n
<dtml-sqlvar expr="row_item[13]" type="string" optional>,\n
<dtml-sqlvar expr="row_item[14]" type="string" optional>,\n
<dtml-sqlvar expr="row_item[15]" type="string" optional>,\n
<dtml-sqlvar expr="row_item[16]" type="string" optional>\n
<dtml-sqlvar expr="row_item[15]" type="string" optional>\n
)\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n
......
......@@ -107,26 +107,14 @@ CREATE TABLE `catalog` (\n
`id` varchar(255) default \'\',\n
`description` text,\n
`title` varchar(255) default \'\',\n
`meta_type` varchar(255) default \'\',\n
`portal_type` varchar(255) default \'\',\n
`opportunity_state` varchar(255) default \'\',\n
`corporate_registration_code` varchar(255),\n
`ean13_code` varchar(255),\n
`validation_state` varchar(255) default \'\',\n
`validation_state_title` varchar(255) default \'\',\n
`simulation_state` varchar(255) default \'\',\n
`simulation_state_title` 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
`reference` varchar(255) 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
......@@ -134,21 +122,14 @@ CREATE TABLE `catalog` (\n
`stop_date` datetime,\n
PRIMARY KEY (`uid`),\n
KEY `security_uid` (`security_uid`),\n
KEY `Parent` (`parent_uid`),\n
KEY `Path` (`path`),\n
KEY `relative_url` (`relative_url`),\n
KEY `Type` (`meta_type`,`portal_type`),\n
KEY `Parent` (`parent_uid`, `portal_type`, `security_uid`),\n
KEY `Type1` (`portal_type`),\n
KEY `Type2` (`meta_type`),\n
KEY `opportunity_state` (`opportunity_state`),\n
KEY `validation_state` (`validation_state`),\n
KEY `validation_state_title` (`validation_state_title`),\n
KEY `simulation_state` (`simulation_state`),\n
KEY `simulation_state_title` (`simulation_state_title`),\n
KEY `causality_state` (`causality_state`),\n
KEY `invoice_state` (`invoice_state`),\n
KEY `payment_state` (`payment_state`),\n
KEY `event_state` (`event_state`)\n
KEY `validation_state` (`validation_state`, `portal_type`, `security_uid`),\n
KEY `simulation_state` (`simulation_state`, `portal_type`, `security_uid`),\n
KEY `simulation_state_title` (`simulation_state_title`, `portal_type`, `security_uid`),\n
KEY `source_reference` (`parent_uid`, `source_reference`),\n
KEY `start_date` (`parent_uid`, `start_date`),\n
KEY `reference` (`portal_type`, `reference`)\n
) TYPE=InnoDB;\n
</string> </value>
</item>
......@@ -199,26 +180,14 @@ CREATE TABLE `catalog` (\n
`id` varchar(255) default \'\',\n
`description` text,\n
`title` varchar(255) default \'\',\n
`meta_type` varchar(255) default \'\',\n
`portal_type` varchar(255) default \'\',\n
`opportunity_state` varchar(255) default \'\',\n
`corporate_registration_code` varchar(255),\n
`ean13_code` varchar(255),\n
`validation_state` varchar(255) default \'\',\n
`validation_state_title` varchar(255) default \'\',\n
`simulation_state` varchar(255) default \'\',\n
`simulation_state_title` 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
`reference` varchar(255) 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
......@@ -226,21 +195,14 @@ CREATE TABLE `catalog` (\n
`stop_date` datetime,\n
PRIMARY KEY (`uid`),\n
KEY `security_uid` (`security_uid`),\n
KEY `Parent` (`parent_uid`),\n
KEY `Path` (`path`),\n
KEY `relative_url` (`relative_url`),\n
KEY `Type` (`meta_type`,`portal_type`),\n
KEY `Parent` (`parent_uid`, `portal_type`, `security_uid`),\n
KEY `Type1` (`portal_type`),\n
KEY `Type2` (`meta_type`),\n
KEY `opportunity_state` (`opportunity_state`),\n
KEY `validation_state` (`validation_state`),\n
KEY `validation_state_title` (`validation_state_title`),\n
KEY `simulation_state` (`simulation_state`),\n
KEY `simulation_state_title` (`simulation_state_title`),\n
KEY `causality_state` (`causality_state`),\n
KEY `invoice_state` (`invoice_state`),\n
KEY `payment_state` (`payment_state`),\n
KEY `event_state` (`event_state`)\n
KEY `validation_state` (`validation_state`, `portal_type`, `security_uid`),\n
KEY `simulation_state` (`simulation_state`, `portal_type`, `security_uid`),\n
KEY `simulation_state_title` (`simulation_state_title`, `portal_type`, `security_uid`),\n
KEY `source_reference` (`parent_uid`, `source_reference`),\n
KEY `start_date` (`parent_uid`, `start_date`),\n
KEY `reference` (`portal_type`, `reference`)\n
) TYPE=InnoDB;\n
</string> </value>
</item>
......
<catalog_method>
<item key="sql_clear_catalog" type="int">
<value>1</value>
</item>
</catalog_method>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="SQL" module="Products.ZSQLMethods.SQL"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_col</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>allow_simple_one_argument_traversal</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>arguments_src</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>cache_time_</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>class_file_</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>class_name_</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>connection_hook</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>connection_id</string> </key>
<value> <string>erp5_sql_connection</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>z_create_category</string> </value>
</item>
<item>
<key> <string>max_cache_</string> </key>
<value> <int>100</int> </value>
</item>
<item>
<key> <string>max_rows_</string> </key>
<value> <int>1000</int> </value>
</item>
<item>
<key> <string>src</string> </key>
<value> <string>CREATE TABLE `category` (\n
`uid` BIGINT UNSIGNED NOT NULL,\n
`category_uid` BIGINT UNSIGNED default \'0\',\n
`base_category_uid` BIGINT UNSIGNED default \'0\',\n
`category_strict_membership` tinyint(1) default \'0\',\n
KEY `uid` (`uid`),\n
KEY `Membership` (`category_uid`,`base_category_uid`)\n
) TYPE = InnoDB;</string> </value>
</item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>CREATE TABLE `category` (\n
`uid` BIGINT UNSIGNED NOT NULL,\n
`category_uid` BIGINT UNSIGNED default \'0\',\n
`base_category_uid` BIGINT UNSIGNED default \'0\',\n
`category_strict_membership` tinyint(1) default \'0\',\n
KEY `uid` (`uid`),\n
KEY `Membership` (`category_uid`,`base_category_uid`)\n
) TYPE = InnoDB;</string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<catalog_method>
<item key="sql_clear_catalog" type="int">
<value>1</value>
</item>
</catalog_method>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="SQL" module="Products.ZSQLMethods.SQL"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>allow_simple_one_argument_traversal</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>arguments_src</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>cache_time_</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>class_file_</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>class_name_</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>connection_hook</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>connection_id</string> </key>
<value> <string>erp5_sql_connection</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>z_create_roles_and_users</string> </value>
</item>
<item>
<key> <string>max_cache_</string> </key>
<value> <int>100</int> </value>
</item>
<item>
<key> <string>max_rows_</string> </key>
<value> <int>1000</int> </value>
</item>
<item>
<key> <string>src</string> </key>
<value> <string>CREATE TABLE roles_and_users (\n
uid INT UNSIGNED NOT NULL,\n
allowedRolesAndUsers VARCHAR(255) NOT NULL,\n
KEY `uid` (`uid`),\n
KEY `allowedRolesAndUsers` (`allowedRolesAndUsers`)\n
) TYPE=InnoDB; \n
</string> </value>
</item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>CREATE TABLE roles_and_users (\n
uid INT UNSIGNED NOT NULL,\n
allowedRolesAndUsers VARCHAR(255) NOT NULL,\n
KEY `uid` (`uid`),\n
KEY `allowedRolesAndUsers` (`allowedRolesAndUsers`)\n
) TYPE=InnoDB; \n
</string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -110,7 +110,6 @@ CREATE TABLE `stock` (\n
`resource_uid` BIGINT UNSIGNED,\n
`quantity` real ,\n
`date` datetime,\n
`mirror_date` datetime,\n
`total_price` real ,\n
`portal_type` VARCHAR(255),\n
`simulation_state` varchar(255) default \'\',\n
......@@ -182,7 +181,6 @@ CREATE TABLE `stock` (\n
`resource_uid` BIGINT UNSIGNED,\n
`quantity` real ,\n
`date` datetime,\n
`mirror_date` datetime,\n
`total_price` real ,\n
`portal_type` VARCHAR(255),\n
`simulation_state` varchar(255) default \'\',\n
......
......@@ -64,7 +64,7 @@
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string></string>
</list>
</value>
</item>
......@@ -73,10 +73,12 @@
<value>
<dictionary>
<item>
<key> <string>left</string> </key>
<key> <string></string> </key>
<value>
<list>
<string>my_preferred_usual_cash_max_rendering_price</string>
<string>my_preferred_sica_directory</string>
<string>my_preferred_star_directory</string>
</list>
</value>
</item>
......
168
\ No newline at end of file
170
\ No newline at end of file
......@@ -3,6 +3,8 @@ erp5_mysql_innodb/z_catalog_movement_list
erp5_mysql_innodb/z_catalog_object_list
erp5_mysql_innodb/z_catalog_stock_list
erp5_mysql_innodb/z_create_catalog
erp5_mysql_innodb/z_create_category
erp5_mysql_innodb/z_create_roles_and_users
erp5_mysql_innodb/z_create_stock
erp5_mysql_innodb/z_related_default_site
erp5_mysql_innodb/z_related_destination_payment
......
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