From 63f688de9cf6caa02cab1fb6f5bf15d054fcc125 Mon Sep 17 00:00:00 2001 From: Sean Stoves Date: Tue, 4 Aug 2020 17:47:21 -0400 Subject: [PATCH] Removing Blob/LongText from CommandPermissions. --- ChaosBot/Migrations/20200804204734_CommandPermissions.cs | 2 +- ChaosBot/Models/CommandPermission.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChaosBot/Migrations/20200804204734_CommandPermissions.cs b/ChaosBot/Migrations/20200804204734_CommandPermissions.cs index 47270e0..2081ca3 100644 --- a/ChaosBot/Migrations/20200804204734_CommandPermissions.cs +++ b/ChaosBot/Migrations/20200804204734_CommandPermissions.cs @@ -18,7 +18,7 @@ namespace ChaosBot.Migrations DiscordGuildId = table.Column(nullable: false), TargetId = table.Column(nullable: false), TargetType = table.Column(nullable: false), - Command = table.Column(nullable: false) + Command = table.Column(nullable: false, maxLength: 128) }, constraints: table => { diff --git a/ChaosBot/Models/CommandPermission.cs b/ChaosBot/Models/CommandPermission.cs index 3a72724..3301d34 100644 --- a/ChaosBot/Models/CommandPermission.cs +++ b/ChaosBot/Models/CommandPermission.cs @@ -14,6 +14,7 @@ namespace ChaosBot.Models [Required] public int TargetType { get; set; } [Required] + [MaxLength(128)] public string Command { get; set; } } #endregion