add migration
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Владимир Фёдоров 2023-08-14 03:40:36 +07:00
parent 2c9ac6b1ce
commit a7caf6c422
1 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,14 @@
DROP TABLE IF EXISTS users;
-- +goose Up
-- +goose StatementBegin
CREATE TABLE users (
id SERIAL PRIMARY KEY,
chat_id TEXT NOT NULL,
user_id TEXT NOT NULL,
CONSTRAINT unique__chat_id__user_id UNIQUE (chat_id, user_id)
);
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE users;
-- +goose StatementEnd