Now supports saving card groups, this is probably the ugliest code ive ever written but anything to avoid 20 cardgroup properties. we should see if there's a better way, it could probably be a lot cleaner
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user