fix(dal): удалены лишние поля в таблице JobAutoControl
This commit is contained in:
3932
PARR.DAL/Migrations/20251205055752_updAutoControl.Designer.cs
generated
Normal file
3932
PARR.DAL/Migrations/20251205055752_updAutoControl.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
68
PARR.DAL/Migrations/20251205055752_updAutoControl.cs
Normal file
68
PARR.DAL/Migrations/20251205055752_updAutoControl.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updAutoControl : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SyncIsActiveSchedule",
|
||||
schema: "job",
|
||||
table: "AutoControls");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SyncIsActiveTemplate",
|
||||
schema: "job",
|
||||
table: "AutoControls");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "UpdateIsActiveTemplate",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
newName: "InitUsedTemplateState");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "UpdateIsActiveSchedule",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
newName: "InitUsedScheduleState");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "InitUsedTemplateState",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
newName: "UpdateIsActiveTemplate");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "InitUsedScheduleState",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
newName: "UpdateIsActiveSchedule");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "SyncIsActiveSchedule",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "SyncIsActiveTemplate",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1602,21 +1602,15 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<Guid>("JobId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<bool>("InitUsedScheduleState")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("InitUsedTemplateState")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsEnable")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("SyncIsActiveSchedule")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("SyncIsActiveTemplate")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("UpdateIsActiveSchedule")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("UpdateIsActiveTemplate")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.HasKey("JobId");
|
||||
|
||||
b.ToTable("AutoControls", "job", t =>
|
||||
|
||||
@@ -18,24 +18,15 @@ namespace PARR.DAL.Models.Job
|
||||
public bool IsEnable { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Значение при синхронизации, статус шаблона
|
||||
/// Статус шаблона в момент привязки или создания нового шаблона к Job
|
||||
/// </summary>
|
||||
public bool SyncIsActiveTemplate { get; set; } = false;
|
||||
public bool InitUsedTemplateState { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Значение при синхронизации, статус расписания
|
||||
/// Статус расписания в момент привязки или создания нового шаблона к Job
|
||||
/// </summary>
|
||||
public bool SyncIsActiveSchedule { get; set; } = false;
|
||||
public bool InitUsedScheduleState { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Значение при обновлении, статус шаблона
|
||||
/// </summary>
|
||||
public bool UpdateIsActiveTemplate { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Значение при обновлении, статус расписания
|
||||
/// </summary>
|
||||
public bool UpdateIsActiveSchedule { get; set; } = false;
|
||||
|
||||
[ForeignKey(nameof(JobId))]
|
||||
public Job? Job { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user