2017-05-27 23:51:22 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2017-02-13 12:56:06 +00:00
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Migrations
|
|
|
|
|
{
|
|
|
|
|
public partial class guildtimezoneandlocale : Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
|
|
|
name: "Locale",
|
|
|
|
|
table: "GuildConfigs",
|
|
|
|
|
nullable: true,
|
|
|
|
|
defaultValue: null);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
|
|
|
name: "TimeZoneId",
|
|
|
|
|
table: "GuildConfigs",
|
2017-02-13 12:58:08 +00:00
|
|
|
|
nullable: true,
|
2017-02-13 12:56:06 +00:00
|
|
|
|
defaultValue: null);
|
2017-02-13 16:45:29 +00:00
|
|
|
|
|
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
|
|
|
name: "Locale",
|
|
|
|
|
table: "BotConfig",
|
|
|
|
|
nullable: true,
|
|
|
|
|
defaultValue: null);
|
2017-02-13 12:56:06 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "Locale",
|
|
|
|
|
table: "GuildConfigs");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "TimeZoneId",
|
|
|
|
|
table: "GuildConfigs");
|
2017-02-13 16:45:29 +00:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "Locale",
|
|
|
|
|
table: "BotConfig");
|
2017-02-13 12:56:06 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|