mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
57 lines
1.7 KiB
C#
57 lines
1.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace NadekoBot.Migrations
|
|
{
|
|
public partial class boostmessages : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BoostMessage",
|
|
table: "GuildConfigs",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<ulong>(
|
|
name: "BoostMessageChannelId",
|
|
table: "GuildConfigs",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: 0ul);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BoostMessageDeleteAfter",
|
|
table: "GuildConfigs",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "SendBoostMessage",
|
|
table: "GuildConfigs",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "BoostMessage",
|
|
table: "GuildConfigs");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BoostMessageChannelId",
|
|
table: "GuildConfigs");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BoostMessageDeleteAfter",
|
|
table: "GuildConfigs");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SendBoostMessage",
|
|
table: "GuildConfigs");
|
|
}
|
|
}
|
|
}
|