55 lines
1.4 KiB
C#
55 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Project.Web.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Elfte : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "SECRET KEY",
|
|
schema: "dbo",
|
|
table: "USER",
|
|
newName: "SECRET_KEY");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "E-MAIL",
|
|
schema: "dbo",
|
|
table: "USER",
|
|
newName: "EMAIL");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ROLE_ID",
|
|
schema: "dbo",
|
|
table: "USER",
|
|
type: "int",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ROLE_ID",
|
|
schema: "dbo",
|
|
table: "USER");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "SECRET_KEY",
|
|
schema: "dbo",
|
|
table: "USER",
|
|
newName: "SECRET KEY");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "EMAIL",
|
|
schema: "dbo",
|
|
table: "USER",
|
|
newName: "E-MAIL");
|
|
}
|
|
}
|
|
}
|