Skip to content

Commit

Permalink
add create table file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Smith (ace hacker) committed Apr 24, 2012
1 parent 1d03c69 commit 31b794b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sql/create_table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TABLE queue_classic_jobs (
id serial PRIMARY KEY,
q_name varchar(255),
method varchar(255),
args text,
locked_at timestamptz
);

CREATE INDEX idx_qc_on_name_only_unlocked ON queue_classic_jobs (q_name, id) WHERE locked_at IS NULL;

0 comments on commit 31b794b

Please sign in to comment.