diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-02-04 06:20:25 -0500 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-02-04 06:20:57 -0500 |
commit | 8e96edca8659bc87cd85072741e6db8aeaf751ff (patch) | |
tree | 1dc6fba8b81f357d1ada9669e853717a2ac5a97b /migrations/2020-02-03-225040_tasks | |
parent | e614b1eec14d03e72b6e9fba15129973df1dd704 (diff) |
Add raw data to database
Diffstat (limited to 'migrations/2020-02-03-225040_tasks')
-rw-r--r-- | migrations/2020-02-03-225040_tasks/down.sql | 1 | ||||
-rw-r--r-- | migrations/2020-02-03-225040_tasks/up.sql | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/migrations/2020-02-03-225040_tasks/down.sql b/migrations/2020-02-03-225040_tasks/down.sql new file mode 100644 index 0000000..4827072 --- /dev/null +++ b/migrations/2020-02-03-225040_tasks/down.sql @@ -0,0 +1 @@ +drop table tasks; diff --git a/migrations/2020-02-03-225040_tasks/up.sql b/migrations/2020-02-03-225040_tasks/up.sql new file mode 100644 index 0000000..faebc0a --- /dev/null +++ b/migrations/2020-02-03-225040_tasks/up.sql @@ -0,0 +1,7 @@ +create table tasks ( + id bigserial not null primary key, + state varchar(8) not null, + start_at timestamptz not null, + username varchar not null references users(username), + payload jsonb not null +); |