Commit 8e93c845 authored by Jérome Perrin's avatar Jérome Perrin

make creation_date and modification_date available to catalog.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4583 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 70739263
...@@ -33,7 +33,9 @@ getDestinationReference ...@@ -33,7 +33,9 @@ getDestinationReference
getStringIndex getStringIndex
getIntIndex getIntIndex
getFloatIndex getFloatIndex
hasCellContent</params> hasCellContent
getCreationDate
getModificationDate</params>
REPLACE INTO REPLACE INTO
catalog catalog
VALUES VALUES
...@@ -65,7 +67,9 @@ VALUES ...@@ -65,7 +67,9 @@ VALUES
<dtml-sqlvar expr="getStringIndex[loop_item]" type="string" optional>, <dtml-sqlvar expr="getStringIndex[loop_item]" type="string" optional>,
<dtml-sqlvar expr="getIntIndex[loop_item]" type="int" optional>, <dtml-sqlvar expr="getIntIndex[loop_item]" type="int" optional>,
<dtml-sqlvar expr="getFloatIndex[loop_item]" type="float" optional>, <dtml-sqlvar expr="getFloatIndex[loop_item]" type="float" optional>,
<dtml-sqlvar expr="hasCellContent[loop_item]" type="int" optional> <dtml-sqlvar expr="hasCellContent[loop_item]" type="int" optional>,
<dtml-sqlvar expr="getCreationDate[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="getModificationDate[loop_item]" type="datetime" optional>
) )
<dtml-if sequence-end><dtml-else>,</dtml-if> <dtml-if sequence-end><dtml-else>,</dtml-if>
</dtml-in> </dtml-in>
...@@ -40,6 +40,8 @@ CREATE TABLE `catalog` ( ...@@ -40,6 +40,8 @@ CREATE TABLE `catalog` (
`int_index` INT, `int_index` INT,
`float_index` real, `float_index` real,
`has_cell_content` bool, `has_cell_content` bool,
`creation_date` datetime,
`modification_date` datetime,
PRIMARY KEY (`uid`), PRIMARY KEY (`uid`),
KEY `security_uid` (`security_uid`), KEY `security_uid` (`security_uid`),
KEY `Parent` (`parent_uid`), KEY `Parent` (`parent_uid`),
......
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