From 00136bc11bca76a0bfa1587d95af325a6c71d7cd Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Sat, 13 Nov 2021 20:27:24 -0800 Subject: [PATCH] Set a max length for BookmarkContainer.title --- Start/Server/Data/Migrations/20211112204617_AddBookmarks.cs | 2 +- Start/Server/Models/BookmarkContainer.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Start/Server/Data/Migrations/20211112204617_AddBookmarks.cs b/Start/Server/Data/Migrations/20211112204617_AddBookmarks.cs index ad5645d..7762835 100644 --- a/Start/Server/Data/Migrations/20211112204617_AddBookmarks.cs +++ b/Start/Server/Data/Migrations/20211112204617_AddBookmarks.cs @@ -12,7 +12,7 @@ namespace Start.Server.Data.Migrations { BookmarkContainerId = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), - Title = table.Column(type: "TEXT", nullable: false), + Title = table.Column(type: "TEXT", maxLength: 300, nullable: false), ApplicationUserId = table.Column(type: "TEXT", nullable: false) }, constraints: table => diff --git a/Start/Server/Models/BookmarkContainer.cs b/Start/Server/Models/BookmarkContainer.cs index 561f499..e523fa8 100644 --- a/Start/Server/Models/BookmarkContainer.cs +++ b/Start/Server/Models/BookmarkContainer.cs @@ -9,6 +9,7 @@ namespace Start.Server.Models { [Key] public int BookmarkContainerId { get; set; } + [MaxLength(300)] public string Title { get; set; } /// The unique ID of the user that this container belongs to