Browse Source

fix: add missing ef migrations files

pull/1174/head
colin 10 months ago
parent
commit
f5a892d789
  1. 3
      .github/workflows/publish.yml
  2. 21
      aspnet-core/LINGYUN.MicroService.All.sln
  3. 1262
      aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/20250410015403_Upgrade-Abp-Framework-To-9-1-1.Designer.cs
  4. 41
      aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/20250410015403_Upgrade-Abp-Framework-To-9-1-1.cs
  5. 10
      aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/AuthServerMigrationsDbContextModelSnapshot.cs
  6. 1052
      aspnet-core/migrations/LY.MicroService.BackendAdmin.EntityFrameworkCore/Migrations/20250410015324_Upgrade-Abp-Framework-To-9-1-1.Designer.cs
  7. 127
      aspnet-core/migrations/LY.MicroService.BackendAdmin.EntityFrameworkCore/Migrations/20250410015324_Upgrade-Abp-Framework-To-9-1-1.cs
  8. 134
      aspnet-core/migrations/LY.MicroService.BackendAdmin.EntityFrameworkCore/Migrations/BackendAdminMigrationsDbContextModelSnapshot.cs
  9. 1983
      aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/20250410015431_Upgrade-Abp-Framework-To-9-1-1.Designer.cs
  10. 41
      aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/20250410015431_Upgrade-Abp-Framework-To-9-1-1.cs
  11. 10
      aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/IdentityServerMigrationsDbContextModelSnapshot.cs
  12. 51
      build/package-aspnetcore-publish.ps1

3
.github/workflows/publish.yml

@ -25,7 +25,6 @@ jobs:
working-directory: .\build
shell: powershell
- name: Publish Packages
run:
dotnet nuget push *.nupkg --api-key ${{ secrets.NUGETKEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
run: ..\..\build\package-aspnetcore-publish.ps1
working-directory: .\aspnet-core\LocalNuget

21
aspnet-core/LINGYUN.MicroService.All.sln

@ -829,6 +829,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LINGYUN.Abp.Telemetry.OpenT
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LINGYUN.Abp.Telemetry.SkyWalking", "framework\telemetry\LINGYUN.Abp.Telemetry.SkyWalking\LINGYUN.Abp.Telemetry.SkyWalking.csproj", "{5B9CA129-16CE-4BEF-B22D-C084B38B4EDA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LINGYUN.Abp.IP.Location", "framework\common\LINGYUN.Abp.IP.Location\LINGYUN.Abp.IP.Location.csproj", "{418EE258-2670-29D3-480F-EC0FD07700E8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LINGYUN.Abp.IP2Region", "framework\common\LINGYUN.Abp.IP2Region\LINGYUN.Abp.IP2Region.csproj", "{7984F6B6-726F-9F30-3B6F-08A90AD75A7D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LINGYUN.Abp.AuditLogging.IP.Location", "framework\auditing\LINGYUN.Abp.AuditLogging.IP.Location\LINGYUN.Abp.AuditLogging.IP.Location.csproj", "{D63FEED3-2342-7E96-4121-B0C19CF1EA81}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -2143,6 +2149,18 @@ Global
{5B9CA129-16CE-4BEF-B22D-C084B38B4EDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5B9CA129-16CE-4BEF-B22D-C084B38B4EDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5B9CA129-16CE-4BEF-B22D-C084B38B4EDA}.Release|Any CPU.Build.0 = Release|Any CPU
{418EE258-2670-29D3-480F-EC0FD07700E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{418EE258-2670-29D3-480F-EC0FD07700E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{418EE258-2670-29D3-480F-EC0FD07700E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{418EE258-2670-29D3-480F-EC0FD07700E8}.Release|Any CPU.Build.0 = Release|Any CPU
{7984F6B6-726F-9F30-3B6F-08A90AD75A7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7984F6B6-726F-9F30-3B6F-08A90AD75A7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7984F6B6-726F-9F30-3B6F-08A90AD75A7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7984F6B6-726F-9F30-3B6F-08A90AD75A7D}.Release|Any CPU.Build.0 = Release|Any CPU
{D63FEED3-2342-7E96-4121-B0C19CF1EA81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D63FEED3-2342-7E96-4121-B0C19CF1EA81}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D63FEED3-2342-7E96-4121-B0C19CF1EA81}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D63FEED3-2342-7E96-4121-B0C19CF1EA81}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -2545,6 +2563,9 @@ Global
{F3DF1C3E-7319-48B1-81AB-0284853BB567} = {21542881-C560-4CBB-8AB1-CF757071A057}
{7D7561CB-5059-4F5F-B736-B97195B46A91} = {21542881-C560-4CBB-8AB1-CF757071A057}
{5B9CA129-16CE-4BEF-B22D-C084B38B4EDA} = {21542881-C560-4CBB-8AB1-CF757071A057}
{418EE258-2670-29D3-480F-EC0FD07700E8} = {8AC72641-30D3-4ACF-89FA-808FADC55C2E}
{7984F6B6-726F-9F30-3B6F-08A90AD75A7D} = {8AC72641-30D3-4ACF-89FA-808FADC55C2E}
{D63FEED3-2342-7E96-4121-B0C19CF1EA81} = {6A3FF105-7E8B-4B4D-A736-1C2BAF86FDAA}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C95FDF91-16F2-4A8B-A4BE-0E62D1B66718}

1262
aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/20250410015403_Upgrade-Abp-Framework-To-9-1-1.Designer.cs

File diff suppressed because it is too large

41
aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/Migrations/20250410015403_Upgrade-Abp-Framework-To-9-1-1.cs

@ -0,0 +1,41 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LY.MicroService.AuthServer.EntityFrameworkCore.Migrations
{
/// <inheritdoc />
public partial class UpgradeAbpFrameworkTo911 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "CreationTime",
table: "AbpRoles",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<DateTime>(
name: "CreationTime",
table: "AbpClaimTypes",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreationTime",
table: "AbpRoles");
migrationBuilder.DropColumn(
name: "CreationTime",
table: "AbpClaimTypes");
}
}
}

10
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", "9.0.0")
.HasAnnotation("ProductVersion", "9.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
@ -99,6 +99,10 @@ namespace LY.MicroService.AuthServer.DbMigrator.Migrations
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<string>("Description")
.HasMaxLength(256)
.HasColumnType("varchar(256)");
@ -174,6 +178,10 @@ namespace LY.MicroService.AuthServer.DbMigrator.Migrations
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<int>("EntityVersion")
.HasColumnType("int");

1052
aspnet-core/migrations/LY.MicroService.BackendAdmin.EntityFrameworkCore/Migrations/20250410015324_Upgrade-Abp-Framework-To-9-1-1.Designer.cs

File diff suppressed because it is too large

127
aspnet-core/migrations/LY.MicroService.BackendAdmin.EntityFrameworkCore/Migrations/20250410015324_Upgrade-Abp-Framework-To-9-1-1.cs

@ -0,0 +1,127 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LY.MicroService.BackendAdmin.EntityFrameworkCore.Migrations
{
/// <inheritdoc />
public partial class UpgradeAbpFrameworkTo911 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ValueRange",
table: "AbpAuthEntityProperties");
migrationBuilder.RenameColumn(
name: "AllowProperties",
table: "AbpAuthRoleEntityRules",
newName: "AccessedProperties");
migrationBuilder.RenameColumn(
name: "AllowProperties",
table: "AbpAuthOrganizationUnitEntityRules",
newName: "AccessedProperties");
migrationBuilder.AddColumn<string>(
name: "JavaScriptType",
table: "AbpAuthEntityProperties",
type: "varchar(256)",
maxLength: 256,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpAuthEntityEnums",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
Name = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
DisplayName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Value = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
PropertyInfoId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci")
},
constraints: table =>
{
table.PrimaryKey("PK_AbpAuthEntityEnums", x => x.Id);
table.ForeignKey(
name: "FK_AbpAuthEntityEnums_AbpAuthEntityProperties_PropertyInfoId",
column: x => x.PropertyInfoId,
principalTable: "AbpAuthEntityProperties",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpAuthSubjectStrategys",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
IsEnabled = table.Column<bool>(type: "tinyint(1)", nullable: false),
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
SubjectName = table.Column<string>(type: "varchar(30)", maxLength: 30, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
SubjectId = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
Strategy = table.Column<int>(type: "int", nullable: false),
ExtraProperties = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false),
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true),
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci")
},
constraints: table =>
{
table.PrimaryKey("PK_AbpAuthSubjectStrategys", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateIndex(
name: "IX_AbpAuthEntityEnums_PropertyInfoId_Name",
table: "AbpAuthEntityEnums",
columns: new[] { "PropertyInfoId", "Name" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AbpAuthEntityEnums");
migrationBuilder.DropTable(
name: "AbpAuthSubjectStrategys");
migrationBuilder.DropColumn(
name: "JavaScriptType",
table: "AbpAuthEntityProperties");
migrationBuilder.RenameColumn(
name: "AccessedProperties",
table: "AbpAuthRoleEntityRules",
newName: "AllowProperties");
migrationBuilder.RenameColumn(
name: "AccessedProperties",
table: "AbpAuthOrganizationUnitEntityRules",
newName: "AllowProperties");
migrationBuilder.AddColumn<string>(
name: "ValueRange",
table: "AbpAuthEntityProperties",
type: "varchar(512)",
maxLength: 512,
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
}
}

134
aspnet-core/migrations/LY.MicroService.BackendAdmin.EntityFrameworkCore/Migrations/BackendAdminMigrationsDbContextModelSnapshot.cs

@ -3,6 +3,7 @@ using System;
using LY.MicroService.BackendAdmin.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
@ -18,9 +19,45 @@ namespace LY.MicroService.BackendAdmin.EntityFrameworkCore.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("ProductVersion", "9.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
modelBuilder.Entity("LINGYUN.Abp.DataProtectionManagement.EntityEnumInfo", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<string>("DisplayName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasColumnName("DisplayName");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("varchar(64)")
.HasColumnName("Name");
b.Property<Guid>("PropertyInfoId")
.HasColumnType("char(36)");
b.Property<string>("Value")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("varchar(10)")
.HasColumnName("Value");
b.HasKey("Id");
b.HasIndex("PropertyInfoId", "Name");
b.ToTable("AbpAuthEntityEnums", (string)null);
});
modelBuilder.Entity("LINGYUN.Abp.DataProtectionManagement.EntityPropertyInfo", b =>
{
b.Property<Guid>("Id")
@ -33,6 +70,12 @@ namespace LY.MicroService.BackendAdmin.EntityFrameworkCore.Migrations
.HasColumnType("varchar(128)")
.HasColumnName("DisplayName");
b.Property<string>("JavaScriptType")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasColumnName("JavaScriptType");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
@ -48,11 +91,6 @@ namespace LY.MicroService.BackendAdmin.EntityFrameworkCore.Migrations
b.Property<Guid>("TypeInfoId")
.HasColumnType("char(36)");
b.Property<string>("ValueRange")
.HasMaxLength(512)
.HasColumnType("varchar(512)")
.HasColumnName("ValueRange");
b.HasKey("Id");
b.HasIndex("TypeInfoId", "TypeFullName");
@ -128,10 +166,10 @@ namespace LY.MicroService.BackendAdmin.EntityFrameworkCore.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<string>("AllowProperties")
b.Property<string>("AccessedProperties")
.HasMaxLength(512)
.HasColumnType("varchar(512)")
.HasColumnName("AllowProperties");
.HasColumnName("AccessedProperties");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
@ -203,10 +241,10 @@ namespace LY.MicroService.BackendAdmin.EntityFrameworkCore.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<string>("AllowProperties")
b.Property<string>("AccessedProperties")
.HasMaxLength(512)
.HasColumnType("varchar(512)")
.HasColumnName("AllowProperties");
.HasColumnName("AccessedProperties");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
@ -272,6 +310,66 @@ namespace LY.MicroService.BackendAdmin.EntityFrameworkCore.Migrations
b.ToTable("AbpAuthRoleEntityRules", (string)null);
});
modelBuilder.Entity("LINGYUN.Abp.DataProtectionManagement.SubjectStrategy", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsEnabled")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<int>("Strategy")
.HasColumnType("int");
b.Property<string>("SubjectId")
.HasMaxLength(64)
.HasColumnType("varchar(64)")
.HasColumnName("SubjectId");
b.Property<string>("SubjectName")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("varchar(30)")
.HasColumnName("SubjectName");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.ToTable("AbpAuthSubjectStrategys", (string)null);
});
modelBuilder.Entity("LINGYUN.Abp.Saas.Editions.Edition", b =>
{
b.Property<Guid>("Id")
@ -869,6 +967,17 @@ namespace LY.MicroService.BackendAdmin.EntityFrameworkCore.Migrations
b.ToTable("AbpSettingDefinitions", (string)null);
});
modelBuilder.Entity("LINGYUN.Abp.DataProtectionManagement.EntityEnumInfo", b =>
{
b.HasOne("LINGYUN.Abp.DataProtectionManagement.EntityPropertyInfo", "PropertyInfo")
.WithMany("Enums")
.HasForeignKey("PropertyInfoId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("PropertyInfo");
});
modelBuilder.Entity("LINGYUN.Abp.DataProtectionManagement.EntityPropertyInfo", b =>
{
b.HasOne("LINGYUN.Abp.DataProtectionManagement.EntityTypeInfo", "TypeInfo")
@ -920,6 +1029,11 @@ namespace LY.MicroService.BackendAdmin.EntityFrameworkCore.Migrations
.IsRequired();
});
modelBuilder.Entity("LINGYUN.Abp.DataProtectionManagement.EntityPropertyInfo", b =>
{
b.Navigation("Enums");
});
modelBuilder.Entity("LINGYUN.Abp.DataProtectionManagement.EntityTypeInfo", b =>
{
b.Navigation("Properties");

1983
aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/20250410015431_Upgrade-Abp-Framework-To-9-1-1.Designer.cs

File diff suppressed because it is too large

41
aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/Migrations/20250410015431_Upgrade-Abp-Framework-To-9-1-1.cs

@ -0,0 +1,41 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LY.MicroService.IdentityServer.EntityFrameworkCore.Migrations
{
/// <inheritdoc />
public partial class UpgradeAbpFrameworkTo911 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "CreationTime",
table: "AbpRoles",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<DateTime>(
name: "CreationTime",
table: "AbpClaimTypes",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreationTime",
table: "AbpRoles");
migrationBuilder.DropColumn(
name: "CreationTime",
table: "AbpClaimTypes");
}
}
}

10
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", "9.0.0")
.HasAnnotation("ProductVersion", "9.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
@ -99,6 +99,10 @@ namespace LY.MicroService.IdentityServer.EntityFrameworkCore.Migrations
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<string>("Description")
.HasMaxLength(256)
.HasColumnType("varchar(256)");
@ -174,6 +178,10 @@ namespace LY.MicroService.IdentityServer.EntityFrameworkCore.Migrations
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<int>("EntityVersion")
.HasColumnType("int");

51
build/package-aspnetcore-publish.ps1

@ -0,0 +1,51 @@
$ErrorActionPreference = "Stop"
$NugetSource = "https://api.nuget.org/v3/index.json"
$ApiKey = "${{ secrets.NUGETKEY }}"
Get-ChildItem -Filter "*.nupkg" | Where-Object { $_.Name -notlike "*.symbols.nupkg" } | ForEach-Object {
$pkg = $_.FullName
Write-Host "🔍 Checking $pkg..."
$tempDir = New-Item -ItemType Directory -Path ([System.IO.Path]::GetTempPath()) -Name ("nupkg_" + [System.Guid]::NewGuid().ToString())
$zipCopy = Join-Path $tempDir "$($_.BaseName).zip"
Copy-Item -Path $pkg -Destination $zipCopy
Expand-Archive -Path $zipCopy -DestinationPath $tempDir.FullName
$nuspec = Get-ChildItem -Path $tempDir.FullName -Filter "*.nuspec" | Select-Object -First 1
if (-not $nuspec) {
Write-Warning "❌ No .nuspec file found in $pkg. Skipping."
Remove-Item -Recurse -Force $tempDir
return
}
[xml]$nuspecXml = Get-Content $nuspec.FullName
$packageId = $nuspecXml.package.metadata.id
$packageVersion = $nuspecXml.package.metadata.version
$lowerId = $packageId.ToLowerInvariant()
$lowerVersion = $packageVersion.ToLowerInvariant()
$checkUrl = "https://api.nuget.org/v3-flatcontainer/$lowerId/$lowerVersion/$lowerId.$lowerVersion.nupkg"
$exists = $false
try {
$response = Invoke-WebRequest -Uri $checkUrl -Method Head -ErrorAction Stop
if ($response.StatusCode -eq 200) {
$exists = $true
}
} catch {
if ($_.Exception.Response.StatusCode -ne 404) {
Write-Warning "⚠️ Unexpected error while checking NuGet: $($_.Exception.Message)"
}
}
if ($exists) {
Write-Host "⚠️ Package $packageId@$packageVersion already exists. Skipping push."
} else {
Write-Host "🚀 Pushing $packageId@$packageVersion..."
dotnet nuget push "$pkg" --api-key "$ApiKey" --source "$NugetSource" --skip-duplicate --no-symbols
}
Remove-Item -Recurse -Force $tempDir
}
Loading…
Cancel
Save