add migration
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2c9ac6b1ce
commit
a7caf6c422
|
@ -1,7 +1,14 @@
|
||||||
DROP TABLE IF EXISTS users;
|
-- +goose Up
|
||||||
|
-- +goose StatementBegin
|
||||||
CREATE TABLE users (
|
CREATE TABLE users (
|
||||||
id SERIAL PRIMARY KEY,
|
id SERIAL PRIMARY KEY,
|
||||||
chat_id TEXT NOT NULL,
|
chat_id TEXT NOT NULL,
|
||||||
user_id TEXT NOT NULL,
|
user_id TEXT NOT NULL,
|
||||||
CONSTRAINT unique__chat_id__user_id UNIQUE (chat_id, user_id)
|
CONSTRAINT unique__chat_id__user_id UNIQUE (chat_id, user_id)
|
||||||
);
|
);
|
||||||
|
-- +goose StatementEnd
|
||||||
|
|
||||||
|
-- +goose Down
|
||||||
|
-- +goose StatementBegin
|
||||||
|
DROP TABLE users;
|
||||||
|
-- +goose StatementEnd
|
Loading…
Reference in New Issue