Commit 23365bde authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add uid.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4859 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fa84b578
...@@ -13,10 +13,12 @@ class_file: ...@@ -13,10 +13,12 @@ class_file:
# Table: 'record' # Table: 'record'
# #
CREATE TABLE `record` ( CREATE TABLE `record` (
`uid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`path` varchar(255) NOT NULL default '', `path` varchar(255) NOT NULL default '',
`catalog` BOOT NOT NULL default 0, `catalog` BOOT NOT NULL default 0,
`played` BOOL NOT NULL default 0, `played` BOOL NOT NULL default 0,
`date` DATETIME NOT NULL, `date` DATETIME NOT NULL,
KEY `path` (`path`), PRIMARY KEY (`uid`),
KEY `played` (`played`) KEY `played` (`played`)
KEY `date` (`date`),
) TYPE=InnoDB; ) TYPE=InnoDB;
...@@ -7,7 +7,7 @@ cache_time:0 ...@@ -7,7 +7,7 @@ cache_time:0
class_name: class_name:
class_file: class_file:
</dtml-comment> </dtml-comment>
<params>path</params> <params>uid_list</params>
<dtml-comment>Do not delete rows really, but just mark them as "played" to avoid dead locks</dtml-comment> <dtml-comment>Do not delete rows really, but just mark them as "played" to avoid dead locks</dtml-comment>
<dtml-if path> <dtml-if path>
UPDATE UPDATE
...@@ -15,7 +15,7 @@ UPDATE ...@@ -15,7 +15,7 @@ UPDATE
SET SET
played = 1 played = 1
WHERE WHERE
<dtml-in path> <dtml-in uid_list>
path = <dtml-sqlvar sequence-item type="string"><dtml-if sequence-end><dtml-else> OR </dtml-if> uid = <dtml-sqlvar sequence-item type="string"><dtml-if sequence-end><dtml-else> OR </dtml-if>
</dtml-in> </dtml-in>
</dtml-if> </dtml-if>
...@@ -9,7 +9,7 @@ class_file: ...@@ -9,7 +9,7 @@ class_file:
</dtml-comment> </dtml-comment>
<params>catalog</params> <params>catalog</params>
SELECT SELECT
path uid, path
FROM FROM
record record
WHERE WHERE
......
...@@ -10,7 +10,7 @@ class_file: ...@@ -10,7 +10,7 @@ class_file:
<params>path_list <params>path_list
catalog</params> catalog</params>
INSERT INTO INSERT INTO
record record (path, catalog, played, date)
VALUES VALUES
<dtml-in path_list> <dtml-in path_list>
( (
......
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