Set a max length for BookmarkContainer.title
This commit is contained in:
		
							parent
							
								
									6ec00b7d06
								
							
						
					
					
						commit
						00136bc11b
					
				|  | @ -12,7 +12,7 @@ namespace Start.Server.Data.Migrations | ||||||
|                 { |                 { | ||||||
|                     BookmarkContainerId = table.Column<int>(type: "INTEGER", nullable: false) |                     BookmarkContainerId = table.Column<int>(type: "INTEGER", nullable: false) | ||||||
|                         .Annotation("Sqlite:Autoincrement", true), |                         .Annotation("Sqlite:Autoincrement", true), | ||||||
|                     Title = table.Column<string>(type: "TEXT", nullable: false), |                     Title = table.Column<string>(type: "TEXT", maxLength: 300, nullable: false), | ||||||
|                     ApplicationUserId = table.Column<string>(type: "TEXT", nullable: false) |                     ApplicationUserId = table.Column<string>(type: "TEXT", nullable: false) | ||||||
|                 }, |                 }, | ||||||
|                 constraints: table => |                 constraints: table => | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ namespace Start.Server.Models { | ||||||
| 		[Key] | 		[Key] | ||||||
| 		public int BookmarkContainerId { get; set; } | 		public int BookmarkContainerId { get; set; } | ||||||
| 
 | 
 | ||||||
|  | 		[MaxLength(300)] | ||||||
| 		public string Title { get; set; } | 		public string Title { get; set; } | ||||||
| 
 | 
 | ||||||
| 		/// <summary>The unique ID of the user that this container belongs to</summary> | 		/// <summary>The unique ID of the user that this container belongs to</summary> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue