35 lines
1016 B
C#
35 lines
1016 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace TOOHUCardAPI.Migrations
|
|
{
|
|
public partial class fixgroupkeytheysendfullstring : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "CardGroupNumber",
|
|
table: "EncodedCardGroup");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "GroupKey",
|
|
table: "EncodedCardGroup",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "GroupKey",
|
|
table: "EncodedCardGroup");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "CardGroupNumber",
|
|
table: "EncodedCardGroup",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
}
|
|
}
|