Oops, fix vita controller update not having a migration

This commit is contained in:
jvyden 2022-01-20 21:46:51 -05:00
parent 91f7c0ae79
commit ef4b8f5dc3
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,30 @@
using LBPUnion.ProjectLighthouse;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ProjectLighthouse.Migrations
{
[DbContext(typeof(Database))]
[Migration("20220121024607_AddVitaCrossControlRequiredToSlot")]
public partial class AddVitaCrossControlRequiredToSlot : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "CrossControllerRequired",
table: "Slots",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CrossControllerRequired",
table: "Slots");
}
}
}

View file

@ -207,6 +207,9 @@ namespace ProjectLighthouse.Migrations
b.Property<int>("CreatorId")
.HasColumnType("int");
b.Property<bool>("CrossControllerRequired")
.HasColumnType("tinyint(1)");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");