forked from ddrilling/AsbCloudServer
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
{
|
|
public partial class RemovedIdFromPermissionRelations : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "id",
|
|
table: "t_relation_user_user_role");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "id",
|
|
table: "t_relation_user_role_permission");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "id",
|
|
table: "t_relation_user_user_role",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "id",
|
|
table: "t_relation_user_role_permission",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
}
|
|
}
|