From f3f1652890bbb13b572273896d7e1a13dd3bad6c Mon Sep 17 00:00:00 2001 From: Thastertyn Date: Sun, 10 Mar 2024 22:47:23 +0100 Subject: [PATCH] Update DB to allow creating image-less products --- shop.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop.sql b/shop.sql index 4895585..9a1cc87 100644 --- a/shop.sql +++ b/shop.sql @@ -35,7 +35,7 @@ create table product( seller_id int not null, name varchar(32) not null, price_pc decimal(12,2) not null, - image blob not null, + image blob, image_name varchar(64), foreign key (seller_id) references user(id) ) auto_increment = 13001;