From 842efae4fc648125a5266d14d58df2572bdda256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sn=C3=ADda=C5=88ov=C3=BD=20Mistr?= Date: Mon, 18 Dec 2023 21:22:29 +0100 Subject: [PATCH] kurva --- migrations/20231217111814_create_news.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/20231217111814_create_news.sql b/migrations/20231217111814_create_news.sql index 05b4744..2fac346 100644 --- a/migrations/20231217111814_create_news.sql +++ b/migrations/20231217111814_create_news.sql @@ -2,6 +2,6 @@ CREATE TABLE news ( id SERIAL NOT NULL PRIMARY KEY, title VARCHAR(256) NOT NULL, content TEXT NOT NULL, - author VARCHAR(32) NOT NULL REFERENCES users(username), + author VARCHAR(32) NOT NULL REFERENCES accounts(username), created TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP );