Merge pull request #24 from medChiboub/patch-1

Adding not null to name attribute in the "tag" table
This commit is contained in:
aisensiy 2020-08-11 21:12:47 +08:00 committed by GitHub
commit 940b4e961e
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 ( create table tags (
id varchar(255) primary key, id varchar(255) primary key,
name varchar(255) name varchar(255) not null
); );
create table article_tags ( create table article_tags (
@ -46,4 +46,4 @@ create table comments (
user_id varchar(255), user_id varchar(255),
created_at TIMESTAMP NOT NULL, created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
); );