Commit d2f71506 authored by Vincent Pelletier's avatar Vincent Pelletier

Add a new column to catalog which is automatically updated by MySQL when each...

Add a new column to catalog which is automatically updated by MySQL when each catalog row is modified.
Update z_catalog_object_list to explicitely give the updated columns, otherwise MySQL complains that not all columns are updated.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16229 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d45712a
...@@ -344,6 +344,11 @@ getModificationDate</string> </value> ...@@ -344,6 +344,11 @@ getModificationDate</string> </value>
REPLACE INTO\n REPLACE INTO\n
catalog\n catalog\n
(`uid`, `security_uid`, `owner`, `path`, `relative_url`, `parent_uid`, `id`, `description`, `title`, `meta_type`,\n
`portal_type`, `opportunity_state`, `corporate_registration_code`, `ean13_code`, `validation_state`, `simulation_state`,\n
`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
`modification_date`)\n
VALUES\n VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n <dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
(\n (\n
...@@ -421,6 +426,11 @@ VALUES\n ...@@ -421,6 +426,11 @@ VALUES\n
REPLACE INTO\n REPLACE INTO\n
catalog\n catalog\n
(`uid`, `security_uid`, `owner`, `path`, `relative_url`, `parent_uid`, `id`, `description`, `title`, `meta_type`,\n
`portal_type`, `opportunity_state`, `corporate_registration_code`, `ean13_code`, `validation_state`, `simulation_state`,\n
`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
`modification_date`)\n
VALUES\n VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n <dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
(\n (\n
......
...@@ -127,6 +127,7 @@ CREATE TABLE `catalog` (\n ...@@ -127,6 +127,7 @@ CREATE TABLE `catalog` (\n
`has_cell_content` bool,\n `has_cell_content` bool,\n
`creation_date` datetime,\n `creation_date` datetime,\n
`modification_date` datetime,\n `modification_date` datetime,\n
`indexation_timestamp` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n
PRIMARY KEY (`uid`),\n PRIMARY KEY (`uid`),\n
KEY `security_uid` (`security_uid`),\n KEY `security_uid` (`security_uid`),\n
KEY `owner` (`owner`),\n KEY `owner` (`owner`),\n
...@@ -214,6 +215,7 @@ CREATE TABLE `catalog` (\n ...@@ -214,6 +215,7 @@ CREATE TABLE `catalog` (\n
`has_cell_content` bool,\n `has_cell_content` bool,\n
`creation_date` datetime,\n `creation_date` datetime,\n
`modification_date` datetime,\n `modification_date` datetime,\n
`indexation_timestamp` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n
PRIMARY KEY (`uid`),\n PRIMARY KEY (`uid`),\n
KEY `security_uid` (`security_uid`),\n KEY `security_uid` (`security_uid`),\n
KEY `owner` (`owner`),\n KEY `owner` (`owner`),\n
......
54 80
\ 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