Skip to content

Commit

Permalink
AddColumn_notifications_Type migration
Browse files Browse the repository at this point in the history
  • Loading branch information
granstel committed Oct 22, 2023
1 parent aaa1092 commit 874f0af
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit 874f0af

Please sign in to comment.