2017-06-04 03:09:19 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2017-05-30 04:54:59 +00:00
|
|
|
|
|
|
|
|
|
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");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|