You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
370 B
16 lines
370 B
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE tag (
|
|
object_kind TINYINT NOT NULL,
|
|
object_id INT NOT NULL,
|
|
tag_name VARCHAR(255) NOT NULL,
|
|
|
|
PRIMARY KEY (object_kind, object_id, tag_name),
|
|
UNIQUE (object_kind, tag_name, object_id)
|
|
);
|
|
-- +goose StatementEnd
|
|
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
DROP TABLE IF EXISTS tag;
|
|
-- +goose StatementEnd
|