mirror of https://github.com/abpframework/abp.git
5 changed files with 2394 additions and 9 deletions
File diff suppressed because it is too large
@ -0,0 +1,62 @@ |
|||
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"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue