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) | ||||
|                         .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) | ||||
|                 }, | ||||
|                 constraints: table => | ||||
|  |  | |||
|  | @ -9,6 +9,7 @@ namespace Start.Server.Models { | |||
| 		[Key] | ||||
| 		public int BookmarkContainerId { get; set; } | ||||
| 
 | ||||
| 		[MaxLength(300)] | ||||
| 		public string Title { get; set; } | ||||
| 
 | ||||
| 		/// <summary>The unique ID of the user that this container belongs to</summary> | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue