mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Killed history
This commit is contained in:
42
NadekoBot.Core/Migrations/20200625194534_warn-expiry.cs
Normal file
42
NadekoBot.Core/Migrations/20200625194534_warn-expiry.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace NadekoBot.Migrations
|
||||
{
|
||||
public partial class warnexpiry : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "WarnExpireAction",
|
||||
table: "GuildConfigs",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "WarnExpireHours",
|
||||
table: "GuildConfigs",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GuildConfigs_WarnExpireHours",
|
||||
table: "GuildConfigs",
|
||||
column: "WarnExpireHours");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_GuildConfigs_WarnExpireHours",
|
||||
table: "GuildConfigs");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "WarnExpireAction",
|
||||
table: "GuildConfigs");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "WarnExpireHours",
|
||||
table: "GuildConfigs");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user