using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace WorldTime.Data.Migrations
{
///
public partial class Add12HrSetting : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "guild_settings",
columns: table => new
{
guildid = table.Column(name: "guild_id", type: "numeric(20,0)", nullable: false),
use12hourtime = table.Column(name: "use12hour_time", type: "boolean", nullable: false, defaultValue: false)
},
constraints: table =>
{
table.PrimaryKey("pk_guild_settings", x => x.guildid);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "guild_settings");
}
}
}