diff --git a/Dodo1000Bot.Api/Migrations/202310221801_AddColumn_notifications_Type.cs b/Dodo1000Bot.Api/Migrations/202310221801_AddColumn_notifications_Type.cs new file mode 100644 index 0000000..ef868ac --- /dev/null +++ b/Dodo1000Bot.Api/Migrations/202310221801_AddColumn_notifications_Type.cs @@ -0,0 +1,22 @@ +using FluentMigrator; + +namespace Dodo1000Bot.Api.Migrations; + +[Migration(202310221801)] +public class AddColumn_notifications_Type: Migration +{ + public override void Up() + { + Execute.Sql + (@" + ALTER TABLE notifications + ADD COLUMN `Type` TINYINT(2) NOT NULL DEFAULT 0, + ADD INDEX `Type` (`Type` ASC) VISIBLE; + "); + } + + public override void Down() + { + throw new System.NotImplementedException(); + } +} \ No newline at end of file