Commit b614f1ec authored by Roque's avatar Roque

erp5_mysql_innodb_catalog: modifiy version column and add size column to versioning table

- Column Version length is extended from 10 to 255 so it can store md5sum's lenght (32 characters) that is needed by data streams created during ebulk tool ingestions used in wendelin.
- New column Size is needed to speed up ebulk tool and can generally be useful for DMS, so that we can search/sort document by size.
parent 4b516fe8
REPLACE INTO
versioning
(`uid`, `version`, `language`, `revision`, `subject_set_uid`, `effective_date`,
(`uid`, `version`, `size`, `language`, `revision`, `subject_set_uid`, `effective_date`,
`expiration_date`, `creation_date_index`, `frequency_index`)
VALUES
<dtml-in prefix="loop" expr="_.range(_.len(uid))">
(
<dtml-sqlvar expr="uid[loop_item]" type="int">,
<dtml-sqlvar expr="uid[loop_item]" type="int">,
<dtml-sqlvar expr="getVersion[loop_item]" type="string" optional>,
<dtml-sqlvar expr="getSize[loop_item]" type="int" optional>,
<dtml-sqlvar expr="getLanguage[loop_item]" type="string" optional>,
<dtml-sqlvar expr="getRevision[loop_item]" type="string" optional>,
<dtml-sqlvar expr="subject_set_uid[loop_item]" type="int" optional>,
......
......@@ -14,22 +14,20 @@
</item>
<item>
<key> <string>allow_simple_one_argument_traversal</string> </key>
<value>
<none/>
</value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>arguments_src</string> </key>
<value> <string>uid\n
getLanguage\n
getVersion\n
getSize\n
getRevision\n
subject_set_uid\n
getEffectiveDate\n
getExpirationDate\n
getCreationDateIndex\n
getFrequencyIndex\n
</string> </value>
getFrequencyIndex</string> </value>
</item>
<item>
<key> <string>cache_time_</string> </key>
......@@ -37,11 +35,15 @@ getFrequencyIndex\n
</item>
<item>
<key> <string>class_file_</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>class_name_</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>connection_hook</string> </key>
......@@ -87,7 +89,7 @@ getFrequencyIndex\n
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <string>z_catalog_versioning_list</string> </value>
</item>
<item>
<key> <string>type</string> </key>
......
CREATE TABLE `versioning` (
`uid` BIGINT UNSIGNED NOT NULL,
`version` varchar(10) default '',
`version` varchar(255) default '',
`size` BIGINT SIGNED,
`language` varchar(5) default '',
`revision` varchar(10) default '',
`subject_set_uid` INT UNSIGNED,
......
......@@ -12,10 +12,26 @@
<tuple/>
</value>
</item>
<item>
<key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>arguments_src</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>class_file_</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>class_name_</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>connection_id</string> </key>
<value> <string>erp5_sql_connection</string> </value>
......@@ -30,7 +46,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <string>z_create_versioning</string> </value>
</item>
</dictionary>
</pickle>
......
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