45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace PARR.DAL.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class TblSettingRename : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropPrimaryKey(
|
|
name: "PK_Setting",
|
|
table: "Setting");
|
|
|
|
migrationBuilder.RenameTable(
|
|
name: "Setting",
|
|
newName: "Settings");
|
|
|
|
migrationBuilder.AddPrimaryKey(
|
|
name: "PK_Settings",
|
|
table: "Settings",
|
|
column: "Name");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropPrimaryKey(
|
|
name: "PK_Settings",
|
|
table: "Settings");
|
|
|
|
migrationBuilder.RenameTable(
|
|
name: "Settings",
|
|
newName: "Setting");
|
|
|
|
migrationBuilder.AddPrimaryKey(
|
|
name: "PK_Setting",
|
|
table: "Setting",
|
|
column: "Name");
|
|
}
|
|
}
|
|
}
|