42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace FinlyticAssets.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddedScannerState : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "CurrentScanningPage",
|
|
table: "Settings",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CurrentScanningType",
|
|
table: "Settings",
|
|
type: "character varying(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "CurrentScanningPage",
|
|
table: "Settings");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CurrentScanningType",
|
|
table: "Settings");
|
|
}
|
|
}
|
|
}
|