mirror of
https://github.com/dreamstarsky/runbin.git
synced 2026-05-15 14:23:07 +00:00
first demo
This commit is contained in:
11
migrations/0002_create_queue_table.sql
Normal file
11
migrations/0002_create_queue_table.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE IF NOT EXISTS queue (
|
||||
id VARCHAR(36) PRIMARY KEY,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
locked_at TIMESTAMP,
|
||||
attempts INT NOT NULL DEFAULT 0
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE queue;
|
||||
|
||||
Reference in New Issue
Block a user