mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.8 KiB
62 lines
1.8 KiB
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Volo.CmsKit.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddedEntityVersion : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "EntityVersion",
|
|
table: "AbpUsers",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "EntityVersion",
|
|
table: "AbpTenants",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "EntityVersion",
|
|
table: "AbpRoles",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "EntityVersion",
|
|
table: "AbpOrganizationUnits",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "EntityVersion",
|
|
table: "AbpUsers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EntityVersion",
|
|
table: "AbpTenants");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EntityVersion",
|
|
table: "AbpRoles");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EntityVersion",
|
|
table: "AbpOrganizationUnits");
|
|
}
|
|
}
|
|
}
|
|
|