using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DiscordApp.Migrations
{
///
public partial class AddBitrhDate : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Autoreactions",
schema: "public");
migrationBuilder.AddColumn(
name: "birthDate",
schema: "public",
table: "Passport",
type: "bigint",
nullable: false,
defaultValue: 0L);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "birthDate",
schema: "public",
table: "Passport");
migrationBuilder.CreateTable(
name: "Autoreactions",
schema: "public",
columns: table => new
{
ChannelId = table.Column(type: "numeric(20,0)", nullable: false),
EmoteId = table.Column(type: "text", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Autoreactions", x => x.ChannelId);
});
}
}
}