Difference between revisions of "Database Table: import items"

From Dreamwidth Notes
Jump to: navigation, search
(Robot: Updating: Format, needs desc)
(Robot: Updating: Format)
 
Line 1: Line 1:
{{Database Table|name=import_items|table type=global|need desc=1}}
+
{{Database Table|name=import_items|table type=global|need desc=1|repo=dw-free}}
 
= Definition =
 
= Definition =
 
<source lang="sql">
 
<source lang="sql">

Latest revision as of 15:56, 22 July 2010

This is a global table.

Definition

CREATE TABLE import_items (
    userid INT UNSIGNED NOT NULL,
    item VARCHAR(255) NOT NULL,
    STATUS ENUM('init', 'ready', 'queued', 'failed', 'succeeded', 'aborted') NOT NULL DEFAULT 'init',
    created INT UNSIGNED NOT NULL,
    last_touch INT UNSIGNED NOT NULL,
    import_data_id INT UNSIGNED NOT NULL,
    priority INT UNSIGNED NOT NULL,
 
    PRIMARY KEY (userid, item, import_data_id),
    INDEX (priority, STATUS)
)

Relationships