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:
# Table: 'record'
#
CREATE TABLE `record` (
`uid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`path` varchar(255) NOT NULL default '',
`catalog` BOOT NOT NULL default 0,
`played` BOOL NOT NULL default 0,
`date` DATETIME NOT NULL,
KEY `path` (`path`),
PRIMARY KEY (`uid`),
KEY `played` (`played`)
KEY `date` (`date`),
) TYPE=InnoDB;
......@@ -7,7 +7,7 @@ cache_time:0
class_name:
class_file:
</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-if path>
UPDATE
......@@ -15,7 +15,7 @@ UPDATE
SET
played = 1
WHERE
<dtml-in path>
path = <dtml-sqlvar sequence-item type="string"><dtml-if sequence-end><dtml-else> OR </dtml-if>
<dtml-in uid_list>
uid = <dtml-sqlvar sequence-item type="string"><dtml-if sequence-end><dtml-else> OR </dtml-if>
</dtml-in>
</dtml-if>
......@@ -9,7 +9,7 @@ class_file:
</dtml-comment>
<params>catalog</params>
SELECT
path
uid, path
FROM
record
WHERE
......
......@@ -10,7 +10,7 @@ class_file:
<params>path_list
catalog</params>
INSERT INTO
record
record (path, catalog, played, date)
VALUES
<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