Permalink
Browse files

add create table file

  • Loading branch information...
1 parent 1d03c69 commit 31b794be5e12c752f077047171b6934c9db9c9ba Ryan Smith (ace hacker) committed Apr 24, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 sql/create_table.sql
View
@@ -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.