44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Yavsc.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class test : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropPrimaryKey(
|
|
name: "PK_Applications",
|
|
table: "Applications");
|
|
|
|
migrationBuilder.RenameTable(
|
|
name: "Applications",
|
|
newName: "Client");
|
|
|
|
migrationBuilder.AddPrimaryKey(
|
|
name: "PK_Client",
|
|
table: "Client",
|
|
column: "Id");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropPrimaryKey(
|
|
name: "PK_Client",
|
|
table: "Client");
|
|
|
|
migrationBuilder.RenameTable(
|
|
name: "Client",
|
|
newName: "Applications");
|
|
|
|
migrationBuilder.AddPrimaryKey(
|
|
name: "PK_Applications",
|
|
table: "Applications",
|
|
column: "Id");
|
|
}
|
|
}
|
|
}
|