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:
parent
fb447b7363
commit
5e16ac0ee1
@ -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
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user