add users table migrations. Need to install goose into migrator

This commit is contained in:
valitovgaziz
2024-08-08 16:15:40 +05:00
parent 260a01b27c
commit f9a7615801
5 changed files with 11 additions and 7 deletions
@@ -1,6 +1,6 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE users(
CREATE TABLE IF NOT EXISTS users(
id UUID NOT NULL PRIMARY KEY,
name VARCHAR(50) NOT NULL,
email VARCHAR(50) NOT NULL UNIQUE INDEX,
@@ -11,5 +11,5 @@ CREATE TABLE users(
-- +goose Down
-- +goose StatementBegin
DROP TABLE users;
DROP TABLE IF EXISTS users;
-- +goose StatementEnd