feat(dal,domain): Таблицы роботов перенесены в схему robot. Создана таблица TemplateRenamePendings - Шаблоны находящиеся в процессе переименования
This commit is contained in:
68
PARR.DAL/Migrations/20260720233522_tblRobotsUpdateScheme.cs
Normal file
68
PARR.DAL/Migrations/20260720233522_tblRobotsUpdateScheme.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblRobotsUpdateScheme : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameTable(
|
||||
name: "TaskStatuses",
|
||||
newName: "TaskStatuses",
|
||||
newSchema: "robot");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "RobotStatuses",
|
||||
newName: "RobotStatuses",
|
||||
newSchema: "robot");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "Robots",
|
||||
newName: "Robots",
|
||||
newSchema: "robot");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "RobotHistoryLevels",
|
||||
newName: "RobotHistoryLevels",
|
||||
newSchema: "robot");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "RobotHistories",
|
||||
newName: "RobotHistories",
|
||||
newSchema: "robot");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameTable(
|
||||
name: "TaskStatuses",
|
||||
schema: "robot",
|
||||
newName: "TaskStatuses");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "RobotStatuses",
|
||||
schema: "robot",
|
||||
newName: "RobotStatuses");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "Robots",
|
||||
schema: "robot",
|
||||
newName: "Robots");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "RobotHistoryLevels",
|
||||
schema: "robot",
|
||||
newName: "RobotHistoryLevels");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "RobotHistories",
|
||||
schema: "robot",
|
||||
newName: "RobotHistories");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user