Files
stufflog2/migrations/postgres/20210403142913_create_table_task_link.sql
T
gisle 2a6c04893d
continuous-integration/drone/push Build is passing
add project linking.
2021-04-03 16:30:43 +02:00

16 lines
313 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE task_link (
project_id CHAR(16) NOT NULL,
task_id CHAR(16) NOT NULL,
PRIMARY KEY (project_id, task_id),
UNIQUE (task_id, project_id)
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE task_link;
-- +goose StatementEnd