Update DB to allow creating image-less products
This commit is contained in:
parent
2eae36e8fd
commit
f3f1652890
2
shop.sql
2
shop.sql
@ -35,7 +35,7 @@ create table product(
|
|||||||
seller_id int not null,
|
seller_id int not null,
|
||||||
name varchar(32) not null,
|
name varchar(32) not null,
|
||||||
price_pc decimal(12,2) not null,
|
price_pc decimal(12,2) not null,
|
||||||
image blob not null,
|
image blob,
|
||||||
image_name varchar(64),
|
image_name varchar(64),
|
||||||
foreign key (seller_id) references user(id)
|
foreign key (seller_id) references user(id)
|
||||||
) auto_increment = 13001;
|
) auto_increment = 13001;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user