Adding not null to name attribute in the "tag" table

The creation of this table fails due to this typo!
This commit is contained in:
Mohamed CHIBOUB 2020-07-29 18:43:43 -04:00 committed by GitHub
parent fb447b7363
commit 5e16ac0ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ create table follows (
create table tags (
id varchar(255) primary key,
name varchar(255)
name varchar(255) not null
);
create table article_tags (
@ -46,4 +46,4 @@ create table comments (
user_id varchar(255),
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
);