mirror of https://github.com/abpframework/abp.git
committed by
GitHub
3 changed files with 1482 additions and 0 deletions
File diff suppressed because it is too large
@ -0,0 +1,42 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Migrations |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
public partial class ABP10_1 : Migration |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "AbpUserPasswordHistories", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
Password = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
||||
|
CreatedAt = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_AbpUserPasswordHistories", x => new { x.UserId, x.Password }); |
||||
|
table.ForeignKey( |
||||
|
name: "FK_AbpUserPasswordHistories_AbpUsers_UserId", |
||||
|
column: x => x.UserId, |
||||
|
principalTable: "AbpUsers", |
||||
|
principalColumn: "Id", |
||||
|
onDelete: ReferentialAction.Cascade); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/// <inheritdoc />
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropTable( |
||||
|
name: "AbpUserPasswordHistories"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue