33 lines
908 B
C#
33 lines
908 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace NadekoBot.Migrations
|
|
{
|
|
public partial class guildprefixes : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Prefix",
|
|
table: "GuildConfigs",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DefaultPrefix",
|
|
table: "BotConfig",
|
|
nullable: true,
|
|
defaultValue: ".");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Prefix",
|
|
table: "GuildConfigs");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DefaultPrefix",
|
|
table: "BotConfig");
|
|
}
|
|
}
|
|
}
|