From 20dafe9fb05448c39fe109b0231307335191459b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 10 Feb 2019 17:52:17 +0000 Subject: Changed size of description to hold larger samples --- Database/Database.cs | 4 ++-- Database/SQL/articles.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Database') diff --git a/Database/Database.cs b/Database/Database.cs index d2e7e32..e419aab 100644 --- a/Database/Database.cs +++ b/Database/Database.cs @@ -55,12 +55,12 @@ namespace Database { entity.Property(e => e.ArticleLink) .HasColumnName("article_link") - .HasMaxLength(64) + .HasMaxLength(128) .IsUnicode(false); entity.Property(e => e.Description) .HasColumnName("description") - .HasMaxLength(255) + .HasMaxLength(512) .IsUnicode(false); entity.Property(e => e.ImageLink) diff --git a/Database/SQL/articles.sql b/Database/SQL/articles.sql index 5f286d2..c4b02be 100644 --- a/Database/SQL/articles.sql +++ b/Database/SQL/articles.sql @@ -1,7 +1,7 @@ CREATE TABLE articles ( article_id INT NOT NULL AUTO_INCREMENT, title VARCHAR(255) UNIQUE, - description VARCHAR(255), + description VARCHAR(512), image_link VARCHAR(128), article_link VARCHAR(128), source VARCHAR(8), -- cgit v1.2.3-13-gbd6f