Files
API/TOOHUCardAPI/Migrations/20211029035809_groupid for encoded card group.cs

36 lines
1020 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
namespace TOOHUCardAPI.Migrations
{
public partial class groupidforencodedcardgroup : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "Ban",
table: "Users",
type: "INTEGER",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<int>(
name: "CardGroupNumber",
table: "EncodedCardGroup",
type: "INTEGER",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Ban",
table: "Users");
migrationBuilder.DropColumn(
name: "CardGroupNumber",
table: "EncodedCardGroup");
}
}
}