mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-19 03:31:29 +00:00
Refactor Database into DatabaseContext Moved into separate folder so it actually has a namespace instead sitting in the root
31 lines
975 B
C#
31 lines
975 B
C#
using LBPUnion.ProjectLighthouse;
|
|
using LBPUnion.ProjectLighthouse.Database;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ProjectLighthouse.Migrations
|
|
{
|
|
[DbContext(typeof(DatabaseContext))]
|
|
[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");
|
|
}
|
|
}
|
|
}
|