From 23f0c6f4a4efe78f02498251da5c3f6b0c05bb16 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 27 Oct 2024 07:29:51 +0100 Subject: [PATCH] Make banner_link and content_link NOT NULL --- create_db.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_db.sql b/create_db.sql index 2bede62..dca426c 100644 --- a/create_db.sql +++ b/create_db.sql @@ -24,9 +24,9 @@ CREATE TABLE articles ( id INT AUTO_INCREMENT, title VARCHAR(255) NOT NULL, created TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - banner_link VARCHAR(255), + banner_link VARCHAR(255) NOT NULL, summary TEXT NOT NULL, - content_link VARCHAR(255), + content_link VARCHAR(255) NOT NULL, published BOOL NOT NULL, rejected BOOL NOT NULL, author_id INT NOT NULL,