diff --git a/migrations/init.sql b/migrations/20230814031823_init.sql similarity index 53% rename from migrations/init.sql rename to migrations/20230814031823_init.sql index e7c4f4d..2f067bc 100644 --- a/migrations/init.sql +++ b/migrations/20230814031823_init.sql @@ -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) -); \ No newline at end of file +); +-- +goose StatementEnd + +-- +goose Down +-- +goose StatementBegin +DROP TABLE users; +-- +goose StatementEnd