cahnge migration on goose

This commit is contained in:
valitovgaziz
2024-08-06 11:18:13 +05:00
parent 25126c176f
commit 65eefa9855
6 changed files with 21 additions and 9 deletions
@@ -0,0 +1,15 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE IF NOT EXISTS users(
id UUID PRIMARY KEY NOT NULL,
name VARCHAR(50) NOT NULL,
email VARCHAR(50),
password VARCHAR(1000) NOT NULL,
phone VARCHAR(30) NOT NULL
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE IF EXISTS users;
-- +goose StatementEnd