From fa84b578ec0e2474bc2a2c4918d0f5c59b367371 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Thu, 22 Dec 2005 13:05:00 +0000 Subject: [PATCH] Decided to go back to a boolean again. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4858 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Catalog/sql/common_mysql/z_create_record.zsql | 2 +- .../sql/common_mysql/z_read_recorded_object_list.zsql | 6 ++---- .../ERP5Catalog/sql/common_mysql/z_record_object_list.zsql | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/product/ERP5Catalog/sql/common_mysql/z_create_record.zsql b/product/ERP5Catalog/sql/common_mysql/z_create_record.zsql index 2c97e8b9e8..6db04d088b 100755 --- a/product/ERP5Catalog/sql/common_mysql/z_create_record.zsql +++ b/product/ERP5Catalog/sql/common_mysql/z_create_record.zsql @@ -14,7 +14,7 @@ class_file: # CREATE TABLE `record` ( `path` varchar(255) NOT NULL default '', - `method_id` VARCHAR(255) NOT NULL default 'reindexObject', + `catalog` BOOT NOT NULL default 0, `played` BOOL NOT NULL default 0, `date` DATETIME NOT NULL, KEY `path` (`path`), diff --git a/product/ERP5Catalog/sql/common_mysql/z_read_recorded_object_list.zsql b/product/ERP5Catalog/sql/common_mysql/z_read_recorded_object_list.zsql index f9552cef98..32ef670645 100755 --- a/product/ERP5Catalog/sql/common_mysql/z_read_recorded_object_list.zsql +++ b/product/ERP5Catalog/sql/common_mysql/z_read_recorded_object_list.zsql @@ -7,15 +7,13 @@ cache_time:0 class_name: class_file: </dtml-comment> -<params>method_id</params> +<params>catalog</params> SELECT path FROM record WHERE played = 0 -<dtml-if method_id> - AND method_id = <dtml-sqlvar method_id type="string"> -</dtml-if> + AND catalog = <dtml-sqlvar catalog type="int"> ORDER BY date diff --git a/product/ERP5Catalog/sql/common_mysql/z_record_object_list.zsql b/product/ERP5Catalog/sql/common_mysql/z_record_object_list.zsql index ee9a448ab6..6c607a3de6 100755 --- a/product/ERP5Catalog/sql/common_mysql/z_record_object_list.zsql +++ b/product/ERP5Catalog/sql/common_mysql/z_record_object_list.zsql @@ -8,14 +8,14 @@ class_name: class_file: </dtml-comment> <params>path_list -method_id</params> +catalog</params> INSERT INTO record VALUES <dtml-in path_list> ( <dtml-sqlvar sequence-item type="string">, - <dtml-sqlvar method_id type="string">, + <dtml-sqlvar catalog type="int">, 0, NOW() ) -- 2.30.9