Browse Source

update: add migrations

pull/1101/head
colin 1 year ago
parent
commit
3864070dbb
  1. 1178
      aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/20250214022911_Upgrade-Abp-Framework-To-9.0.4.Designer.cs
  2. 206
      aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/20250214022911_Upgrade-Abp-Framework-To-9.0.4.cs
  3. 70
      aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/AuthServerMigrationsDbContextModelSnapshot.cs
  4. 1899
      aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/20250214023208_Upgrade-Abp-Framework-To-9.0.4.Designer.cs
  5. 55
      aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/20250214023208_Upgrade-Abp-Framework-To-9.0.4.cs
  6. 13
      aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/IdentityServerMigrationsDbContextModelSnapshot.cs
  7. 4
      aspnet-core/services/LY.MicroService.AuthServer/Program.cs
  8. 4
      aspnet-core/services/LY.MicroService.AuthServer/package.json
  9. 1
      aspnet-core/services/LY.MicroService.IdentityServer/IdentityServerModule.cs
  10. 4
      aspnet-core/services/LY.MicroService.IdentityServer/package.json

1178
aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/20250214022911_Upgrade-Abp-Framework-To-9.0.4.Designer.cs

File diff suppressed because it is too large

206
aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/20250214022911_Upgrade-Abp-Framework-To-9.0.4.cs

@ -0,0 +1,206 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LY.MicroService.AuthServer.EntityFrameworkCore.Migrations
{
/// <inheritdoc />
public partial class UpgradeAbpFrameworkTo904 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreationTime",
table: "OpenIddictTokens");
migrationBuilder.DropColumn(
name: "CreatorId",
table: "OpenIddictTokens");
migrationBuilder.DropColumn(
name: "DeleterId",
table: "OpenIddictTokens");
migrationBuilder.DropColumn(
name: "DeletionTime",
table: "OpenIddictTokens");
migrationBuilder.DropColumn(
name: "IsDeleted",
table: "OpenIddictTokens");
migrationBuilder.DropColumn(
name: "LastModificationTime",
table: "OpenIddictTokens");
migrationBuilder.DropColumn(
name: "LastModifierId",
table: "OpenIddictTokens");
migrationBuilder.DropColumn(
name: "CreationTime",
table: "OpenIddictAuthorizations");
migrationBuilder.DropColumn(
name: "CreatorId",
table: "OpenIddictAuthorizations");
migrationBuilder.DropColumn(
name: "DeleterId",
table: "OpenIddictAuthorizations");
migrationBuilder.DropColumn(
name: "DeletionTime",
table: "OpenIddictAuthorizations");
migrationBuilder.DropColumn(
name: "IsDeleted",
table: "OpenIddictAuthorizations");
migrationBuilder.DropColumn(
name: "LastModificationTime",
table: "OpenIddictAuthorizations");
migrationBuilder.DropColumn(
name: "LastModifierId",
table: "OpenIddictAuthorizations");
migrationBuilder.AlterColumn<string>(
name: "IpAddresses",
table: "AbpSessions",
type: "varchar(2048)",
maxLength: 2048,
nullable: true,
oldClrType: typeof(string),
oldType: "varchar(256)",
oldMaxLength: 256,
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "ExtraProperties",
table: "AbpSessions",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ExtraProperties",
table: "AbpSessions");
migrationBuilder.AddColumn<DateTime>(
name: "CreationTime",
table: "OpenIddictTokens",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<Guid>(
name: "CreatorId",
table: "OpenIddictTokens",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "DeleterId",
table: "OpenIddictTokens",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<DateTime>(
name: "DeletionTime",
table: "OpenIddictTokens",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "IsDeleted",
table: "OpenIddictTokens",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<DateTime>(
name: "LastModificationTime",
table: "OpenIddictTokens",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "LastModifierId",
table: "OpenIddictTokens",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<DateTime>(
name: "CreationTime",
table: "OpenIddictAuthorizations",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<Guid>(
name: "CreatorId",
table: "OpenIddictAuthorizations",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "DeleterId",
table: "OpenIddictAuthorizations",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<DateTime>(
name: "DeletionTime",
table: "OpenIddictAuthorizations",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "IsDeleted",
table: "OpenIddictAuthorizations",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<DateTime>(
name: "LastModificationTime",
table: "OpenIddictAuthorizations",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "LastModifierId",
table: "OpenIddictAuthorizations",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AlterColumn<string>(
name: "IpAddresses",
table: "AbpSessions",
type: "varchar(256)",
maxLength: 256,
nullable: true,
oldClrType: typeof(string),
oldType: "varchar(2048)",
oldMaxLength: 2048,
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
}
}

70
aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/AuthServerMigrationsDbContextModelSnapshot.cs

@ -19,7 +19,7 @@ namespace LY.MicroService.AuthServer.DbMigrator.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("ProductVersion", "8.0.4")
.HasAnnotation("ProductVersion", "9.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
@ -277,9 +277,13 @@ namespace LY.MicroService.AuthServer.DbMigrator.Migrations
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property<string>("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<string>("IpAddresses")
.HasMaxLength(256)
.HasColumnType("varchar(256)");
.HasMaxLength(2048)
.HasColumnType("varchar(2048)");
b.Property<DateTime?>("LastAccessed")
.HasColumnType("datetime(6)");
@ -864,41 +868,11 @@ namespace LY.MicroService.AuthServer.DbMigrator.Migrations
b.Property<DateTime?>("CreationDate")
.HasColumnType("datetime(6)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<string>("Properties")
.HasColumnType("longtext");
@ -1023,22 +997,6 @@ namespace LY.MicroService.AuthServer.DbMigrator.Migrations
b.Property<DateTime?>("CreationDate")
.HasColumnType("datetime(6)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<DateTime?>("ExpirationDate")
.HasColumnType("datetime(6)");
@ -1047,20 +1005,6 @@ namespace LY.MicroService.AuthServer.DbMigrator.Migrations
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<string>("Payload")
.HasColumnType("longtext");

1899
aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/20250214023208_Upgrade-Abp-Framework-To-9.0.4.Designer.cs

File diff suppressed because it is too large

55
aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/20250214023208_Upgrade-Abp-Framework-To-9.0.4.cs

@ -0,0 +1,55 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LY.MicroService.IdentityServer.EntityFrameworkCore.Migrations
{
/// <inheritdoc />
public partial class UpgradeAbpFrameworkTo904 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "IpAddresses",
table: "AbpSessions",
type: "varchar(2048)",
maxLength: 2048,
nullable: true,
oldClrType: typeof(string),
oldType: "varchar(256)",
oldMaxLength: 256,
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "ExtraProperties",
table: "AbpSessions",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ExtraProperties",
table: "AbpSessions");
migrationBuilder.AlterColumn<string>(
name: "IpAddresses",
table: "AbpSessions",
type: "varchar(256)",
maxLength: 256,
nullable: true,
oldClrType: typeof(string),
oldType: "varchar(2048)",
oldMaxLength: 2048,
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
}
}

13
aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/IdentityServerMigrationsDbContextModelSnapshot.cs

@ -19,7 +19,7 @@ namespace LY.MicroService.IdentityServer.EntityFrameworkCore.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("ProductVersion", "8.0.4")
.HasAnnotation("ProductVersion", "9.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
@ -277,9 +277,13 @@ namespace LY.MicroService.IdentityServer.EntityFrameworkCore.Migrations
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property<string>("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<string>("IpAddresses")
.HasMaxLength(256)
.HasColumnType("varchar(256)");
.HasMaxLength(2048)
.HasColumnType("varchar(2048)");
b.Property<DateTime?>("LastAccessed")
.HasColumnType("datetime(6)");
@ -1366,8 +1370,7 @@ namespace LY.MicroService.IdentityServer.EntityFrameworkCore.Migrations
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<DateTime?>("Expiration")
.IsRequired()
b.Property<DateTime>("Expiration")
.HasColumnType("datetime(6)");
b.Property<string>("ExtraProperties")

4
aspnet-core/services/LY.MicroService.AuthServer/Program.cs

@ -18,8 +18,8 @@ public class Program
{
try
{
Console.Title = "IdentityServer";
Log.Information("Starting IdentityServer.");
Console.Title = "AuthServer";
Log.Information("Starting AuthServer.");
var builder = WebApplication.CreateBuilder(args);
builder.Host.AddAppSettingsSecretsJson()

4
aspnet-core/services/LY.MicroService.AuthServer/package.json

@ -1,8 +1,8 @@
{
"version": "8.2.0",
"version": "9.0.4",
"name": "my-app-authserver",
"private": true,
"dependencies": {
"@abp/aspnetcore.mvc.ui.theme.leptonxlite": "3.2.0"
"@abp/aspnetcore.mvc.ui.theme.leptonxlite": "4.0.4"
}
}

1
aspnet-core/services/LY.MicroService.IdentityServer/IdentityServerModule.cs

@ -113,7 +113,6 @@ public partial class IdentityServerModule : AbpModule
var hostingEnvironment = context.Services.GetHostingEnvironment();
var configuration = context.Services.GetConfiguration();
ConfigureDbContext();
ConfigureCaching(configuration);
ConfigureIdentity(configuration);
ConfigureVirtualFileSystem();

4
aspnet-core/services/LY.MicroService.IdentityServer/package.json

@ -1,8 +1,8 @@
{
"version": "8.2.0",
"version": "9.0.4",
"name": "my-app-identityserver",
"private": true,
"dependencies": {
"@abp/aspnetcore.mvc.ui.theme.leptonxlite": "3.2.0"
"@abp/aspnetcore.mvc.ui.theme.leptonxlite": "4.0.4"
}
}
Loading…
Cancel
Save