Commit 33d7d1da authored by Aurel's avatar Aurel

2010-02-05 aurel

* add more columns into versioning table in order to use frequency_index

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32277 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a14aaa6f
......@@ -23,6 +23,12 @@
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>getCreationDateIndex</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>getEffectiveDate</string> </key>
<value>
......@@ -35,6 +41,12 @@
<dictionary/>
</value>
</item>
<item>
<key> <string>getFrequencyIndex</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>getLanguage</string> </key>
<value>
......@@ -72,6 +84,8 @@
<string>getRevision</string>
<string>getEffectiveDate</string>
<string>getExpirationDate</string>
<string>getCreationDateIndex</string>
<string>getFrequencyIndex</string>
</list>
</value>
</item>
......@@ -99,7 +113,9 @@ getLanguage\r\n
getVersion\r\n
getRevision\r\n
getEffectiveDate\r\n
getExpirationDate</string> </value>
getExpirationDate\r\n
getCreationDateIndex\r\n
getFrequencyIndex</string> </value>
</item>
<item>
<key> <string>cache_time_</string> </key>
......@@ -149,7 +165,9 @@ VALUES\n
<dtml-sqlvar expr="getLanguage[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getRevision[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getEffectiveDate[loop_item]" type="datetime" optional>,\n
<dtml-sqlvar expr="getExpirationDate[loop_item]" type="datetime" optional>\n
<dtml-sqlvar expr="getExpirationDate[loop_item]" type="datetime" optional>,\n
<dtml-sqlvar expr="getCreationDateIndex[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="getFrequencyIndex[loop_item]" type="int" optional>\n
)\n
<dtml-if sequence-end>\n
<dtml-else>\n
......@@ -206,7 +224,9 @@ VALUES\n
<dtml-sqlvar expr="getLanguage[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getRevision[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getEffectiveDate[loop_item]" type="datetime" optional>,\n
<dtml-sqlvar expr="getExpirationDate[loop_item]" type="datetime" optional>\n
<dtml-sqlvar expr="getExpirationDate[loop_item]" type="datetime" optional>,\n
<dtml-sqlvar expr="getCreationDateIndex[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="getFrequencyIndex[loop_item]" type="int" optional>\n
)\n
<dtml-if sequence-end>\n
<dtml-else>\n
......
......@@ -63,11 +63,14 @@
`revision` varchar(10) default \'\',\n
`effective_date` datetime default NULL,\n
`expiration_date` datetime default NULL,\n
`creation_date_index` INT, \n
`frequency_index` INT, \n
PRIMARY KEY (`uid`),\n
KEY `version` (`version`),\n
KEY `language` (`language`),\n
KEY `effective_date` (`effective_date`),\n
KEY `expiration_date` (`effective_date`)\n
KEY `expiration_date` (`effective_date`),\n
KEY `frequency_index` (`creation_date_index`, `frequency_index`)\n
) TYPE=InnoDB;\n
</string> </value>
</item>
......@@ -112,11 +115,14 @@
`revision` varchar(10) default \'\',\n
`effective_date` datetime default NULL,\n
`expiration_date` datetime default NULL,\n
`creation_date_index` INT, \n
`frequency_index` INT, \n
PRIMARY KEY (`uid`),\n
KEY `version` (`version`),\n
KEY `language` (`language`),\n
KEY `effective_date` (`effective_date`),\n
KEY `expiration_date` (`effective_date`)\n
KEY `expiration_date` (`effective_date`),\n
KEY `frequency_index` (`creation_date_index`, `frequency_index`)\n
) TYPE=InnoDB;\n
</string> </value>
</item>
......
2010-02-05 aurel
* add more columns into versioning table in order to use frequency_index
2010-01-07 Kazuhiko
* increase the size of the language column in the versioning table from 2 to 5.
......
170
\ No newline at end of file
172
\ 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