forked from abpframework/abp-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c09715
commit 87b0bd6
Showing
78 changed files
with
39,438 additions
and
622 deletions.
There are no files selected for viewing
2,031 changes: 2,031 additions & 0 deletions
2,031
...ityFrameworkCore.DbMigrations/Migrations/20201015020533_Upgraded_To_Abp_3_2_1.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
...Store.EntityFrameworkCore.DbMigrations/Migrations/20201015020533_Upgraded_To_Abp_3_2_1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
namespace Acme.BookStore.Migrations | ||
{ | ||
public partial class Upgraded_To_Abp_3_2_1 : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<bool>( | ||
name: "IsExternal", | ||
table: "AbpUsers", | ||
nullable: false, | ||
defaultValue: false); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "AbpSecurityLogs", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(nullable: false), | ||
ExtraProperties = table.Column<string>(nullable: true), | ||
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true), | ||
TenantId = table.Column<Guid>(nullable: true), | ||
ApplicationName = table.Column<string>(maxLength: 96, nullable: true), | ||
Identity = table.Column<string>(maxLength: 96, nullable: true), | ||
Action = table.Column<string>(maxLength: 96, nullable: true), | ||
UserId = table.Column<Guid>(nullable: true), | ||
UserName = table.Column<string>(maxLength: 256, nullable: true), | ||
TenantName = table.Column<string>(maxLength: 64, nullable: true), | ||
ClientId = table.Column<string>(maxLength: 64, nullable: true), | ||
CorrelationId = table.Column<string>(maxLength: 64, nullable: true), | ||
ClientIpAddress = table.Column<string>(maxLength: 64, nullable: true), | ||
BrowserInfo = table.Column<string>(maxLength: 512, nullable: true), | ||
CreationTime = table.Column<DateTime>(nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_AbpSecurityLogs_TenantId_Action", | ||
table: "AbpSecurityLogs", | ||
columns: new[] { "TenantId", "Action" }); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_AbpSecurityLogs_TenantId_ApplicationName", | ||
table: "AbpSecurityLogs", | ||
columns: new[] { "TenantId", "ApplicationName" }); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_AbpSecurityLogs_TenantId_Identity", | ||
table: "AbpSecurityLogs", | ||
columns: new[] { "TenantId", "Identity" }); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_AbpSecurityLogs_TenantId_UserId", | ||
table: "AbpSecurityLogs", | ||
columns: new[] { "TenantId", "UserId" }); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropTable( | ||
name: "AbpSecurityLogs"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "IsExternal", | ||
table: "AbpUsers"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.