Browse Source

feat(migrations): add PostgreSql db migrations

pull/1416/head
colin 2 months ago
parent
commit
1423bb3b1e
  1. 1251
      aspnet-core/aspire/LINGYUN.Abp.MicroService.AuthServer.EntityFrameworkCore/Migrations/20260109050516_Upgrade-Abp-Framework-To-10-0-2.Designer.cs
  2. 72
      aspnet-core/aspire/LINGYUN.Abp.MicroService.AuthServer.EntityFrameworkCore/Migrations/20260109050516_Upgrade-Abp-Framework-To-10-0-2.cs
  3. 13
      aspnet-core/aspire/LINGYUN.Abp.MicroService.AuthServer.EntityFrameworkCore/Migrations/AuthServerMigrationsDbContextModelSnapshot.cs
  4. 5417
      aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.PostgreSql/Migrations/20260109003422_Upgrade-Abp-Framework-To-10-0-2.Designer.cs
  5. 2321
      aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.PostgreSql/Migrations/20260109003422_Upgrade-Abp-Framework-To-10-0-2.cs
  6. 333
      aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.PostgreSql/Migrations/SingleMigrationsDbContextModelSnapshot.cs

1251
aspnet-core/aspire/LINGYUN.Abp.MicroService.AuthServer.EntityFrameworkCore/Migrations/20260109050516_Upgrade-Abp-Framework-To-10-0-2.Designer.cs

File diff suppressed because it is too large

72
aspnet-core/aspire/LINGYUN.Abp.MicroService.AuthServer.EntityFrameworkCore/Migrations/20260109050516_Upgrade-Abp-Framework-To-10-0-2.cs

@ -0,0 +1,72 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LINGYUN.Abp.MicroService.AuthServer.Migrations
{
/// <inheritdoc />
public partial class UpgradeAbpFrameworkTo1002 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Type",
table: "OpenIddictTokens",
type: "character varying(150)",
maxLength: 150,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AddColumn<string>(
name: "FrontChannelLogoutUri",
table: "OpenIddictApplications",
type: "text",
nullable: true);
migrationBuilder.AlterColumn<string>(
name: "DeviceInfo",
table: "AbpSessions",
type: "character varying(256)",
maxLength: 256,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(64)",
oldMaxLength: 64,
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "FrontChannelLogoutUri",
table: "OpenIddictApplications");
migrationBuilder.AlterColumn<string>(
name: "Type",
table: "OpenIddictTokens",
type: "character varying(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(150)",
oldMaxLength: 150,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "DeviceInfo",
table: "AbpSessions",
type: "character varying(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(256)",
oldMaxLength: 256,
oldNullable: true);
}
}
}

13
aspnet-core/aspire/LINGYUN.Abp.MicroService.AuthServer.EntityFrameworkCore/Migrations/AuthServerMigrationsDbContextModelSnapshot.cs

@ -19,7 +19,7 @@ namespace LINGYUN.Abp.MicroService.AuthServer.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql)
.HasAnnotation("ProductVersion", "9.0.5")
.HasAnnotation("ProductVersion", "10.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
@ -337,8 +337,8 @@ namespace LINGYUN.Abp.MicroService.AuthServer.Migrations
.HasColumnType("character varying(64)");
b.Property<string>("DeviceInfo")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
@ -863,6 +863,9 @@ namespace LINGYUN.Abp.MicroService.AuthServer.Migrations
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property<string>("FrontChannelLogoutUri")
.HasColumnType("text");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
@ -1083,8 +1086,8 @@ namespace LINGYUN.Abp.MicroService.AuthServer.Migrations
.HasColumnType("character varying(400)");
b.Property<string>("Type")
.HasMaxLength(50)
.HasColumnType("character varying(50)");
.HasMaxLength(150)
.HasColumnType("character varying(150)");
b.HasKey("Id");

5417
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.PostgreSql/Migrations/20260109003422_Upgrade-Abp-Framework-To-10-0-2.Designer.cs

File diff suppressed because it is too large

2321
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.PostgreSql/Migrations/20260109003422_Upgrade-Abp-Framework-To-10-0-2.cs

File diff suppressed because it is too large

333
aspnet-core/migrations/LY.MicroService.Applications.Single.EntityFrameworkCore.PostgreSql/Migrations/SingleMigrationsDbContextModelSnapshot.cs

File diff suppressed because it is too large
Loading…
Cancel
Save