17 changed files with 3010 additions and 4770 deletions
@ -1,7 +1,7 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>netstandard2.0</TargetFramework> |
|||
<TargetFramework>net8.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
</Project> |
|||
|
|||
File diff suppressed because it is too large
@ -0,0 +1,57 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace App1.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class UpgradedToAbp_8_2 : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "AbpSessions", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
SessionId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|||
Device = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
DeviceInfo = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ClientId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
IpAddresses = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), |
|||
SignedIn = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
LastAccessed = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpSessions", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpSessions_Device", |
|||
table: "AbpSessions", |
|||
column: "Device"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpSessions_SessionId", |
|||
table: "AbpSessions", |
|||
column: "SessionId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpSessions_TenantId_UserId", |
|||
table: "AbpSessions", |
|||
columns: new[] { "TenantId", "UserId" }); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "AbpSessions"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
File diff suppressed because it is too large
Loading…
Reference in new issue