From 5e16ac0ee11d59a39225802a698f20d3c0883fbd Mon Sep 17 00:00:00 2001 From: Mohamed CHIBOUB <12234326+medChiboub@users.noreply.github.com> Date: Wed, 29 Jul 2020 18:43:43 -0400 Subject: [PATCH] Adding not null to name attribute in the "tag" table The creation of this table fails due to this typo! --- src/main/resources/db/migration/V1__create_tables.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/db/migration/V1__create_tables.sql b/src/main/resources/db/migration/V1__create_tables.sql index 1ba8fa2..5bccdd5 100644 --- a/src/main/resources/db/migration/V1__create_tables.sql +++ b/src/main/resources/db/migration/V1__create_tables.sql @@ -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 -); \ No newline at end of file +);