DD.WellWorkover.Cloud/AsbCloudDb/Migrations/20211216072650_RemovedIdFromPermissionRelations.cs
2021-12-16 16:00:47 +05:00

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);
}
}
}