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
... | @@ -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 | ||
... | ... |