/
githubmirror
/
goose
Обзор
Документация
Войти
/
githubmirror
/
goose
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
testdata/migrations/00003_comments_table.sql
13 строк
339 B
Michael Fridman
test: improve goose cli tests (#589)
27 авг 2023, 16:20
Не верифицирован
27 авг 2023, 16:20
958c950
Код
Авторство
О чём код?
-- +goose Up CREATE TABLE comments ( id INTEGER PRIMARY KEY, post_id INTEGER NOT NULL, user_id INTEGER NOT NULL, content TEXT NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (post_id) REFERENCES posts(id), FOREIGN KEY (user_id) REFERENCES users(id) ); -- +goose Down DROP TABLE comments;