Browse Source

Change database provider to PostgreSQL for Administration Service

pull/28/head
enisn 5 years ago
parent
commit
85f773428f
  1. 2
      services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/EShopOnAbp.AdministrationService.EntityFrameworkCore.csproj
  2. 2
      services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/EntityFrameworkCore/AdministrationServiceDbContextFactory.cs
  3. 6
      services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/EntityFrameworkCore/AdministrationServiceEntityFrameworkCoreModule.cs
  4. 169
      services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211125123421_Initial.Designer.cs
  5. 161
      services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211125123421_Initial.cs
  6. 167
      services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/AdministrationServiceDbContextModelSnapshot.cs
  7. 2
      services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/appsettings.json

2
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/EShopOnAbp.AdministrationService.EntityFrameworkCore.csproj

@ -13,7 +13,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\EShopOnAbp.AdministrationService.Domain\EShopOnAbp.AdministrationService.Domain.csproj" /> <ProjectReference Include="..\EShopOnAbp.AdministrationService.Domain\EShopOnAbp.AdministrationService.Domain.csproj" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="5.0.0-rc.1" /> <PackageReference Include="Volo.Abp.EntityFrameworkCore.PostgreSql" Version="5.0.0-rc.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="5.0.0-rc.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="5.0.0-rc.1" />
<PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="5.0.0-rc.1" /> <PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="5.0.0-rc.1" />
<PackageReference Include="Volo.Abp.AuditLogging.EntityFrameworkCore" Version="5.0.0-rc.1" /> <PackageReference Include="Volo.Abp.AuditLogging.EntityFrameworkCore" Version="5.0.0-rc.1" />

2
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/EntityFrameworkCore/AdministrationServiceDbContextFactory.cs

@ -10,7 +10,7 @@ namespace EShopOnAbp.AdministrationService.EntityFrameworkCore
public AdministrationServiceDbContext CreateDbContext(string[] args) public AdministrationServiceDbContext CreateDbContext(string[] args)
{ {
var builder = new DbContextOptionsBuilder<AdministrationServiceDbContext>() var builder = new DbContextOptionsBuilder<AdministrationServiceDbContext>()
.UseSqlServer(GetConnectionStringFromConfiguration(), b => .UseNpgsql(GetConnectionStringFromConfiguration(), b =>
{ {
b.MigrationsHistoryTable("__AdministrationService_Migrations"); b.MigrationsHistoryTable("__AdministrationService_Migrations");
}); });

6
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/EntityFrameworkCore/AdministrationServiceEntityFrameworkCoreModule.cs

@ -2,7 +2,7 @@
using Volo.Abp.AuditLogging.EntityFrameworkCore; using Volo.Abp.AuditLogging.EntityFrameworkCore;
using Volo.Abp.BlobStoring.Database.EntityFrameworkCore; using Volo.Abp.BlobStoring.Database.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.SqlServer; using Volo.Abp.EntityFrameworkCore.PostgreSql;
using Volo.Abp.FeatureManagement.EntityFrameworkCore; using Volo.Abp.FeatureManagement.EntityFrameworkCore;
using Volo.Abp.Modularity; using Volo.Abp.Modularity;
using Volo.Abp.PermissionManagement.EntityFrameworkCore; using Volo.Abp.PermissionManagement.EntityFrameworkCore;
@ -12,7 +12,7 @@ namespace EShopOnAbp.AdministrationService.EntityFrameworkCore
{ {
[DependsOn( [DependsOn(
typeof(AdministrationServiceDomainModule), typeof(AdministrationServiceDomainModule),
typeof(AbpEntityFrameworkCoreSqlServerModule), typeof(AbpEntityFrameworkCorePostgreSqlModule),
typeof(AbpPermissionManagementEntityFrameworkCoreModule), typeof(AbpPermissionManagementEntityFrameworkCoreModule),
typeof(AbpSettingManagementEntityFrameworkCoreModule), typeof(AbpSettingManagementEntityFrameworkCoreModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule), typeof(AbpAuditLoggingEntityFrameworkCoreModule),
@ -38,7 +38,7 @@ namespace EShopOnAbp.AdministrationService.EntityFrameworkCore
{ {
options.Configure<AdministrationServiceDbContext>(c => options.Configure<AdministrationServiceDbContext>(c =>
{ {
c.UseSqlServer(b => c.UseNpgsql(b =>
{ {
b.MigrationsHistoryTable("__AdministrationService_Migrations"); b.MigrationsHistoryTable("__AdministrationService_Migrations");
}); });

169
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211006102113_Initial.Designer.cs → services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211125123421_Initial.Designer.cs

@ -3,9 +3,9 @@ using System;
using EShopOnAbp.AdministrationService.EntityFrameworkCore; using EShopOnAbp.AdministrationService.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore;
#nullable disable #nullable disable
@ -13,115 +13,115 @@ using Volo.Abp.EntityFrameworkCore;
namespace EShopOnAbp.AdministrationService.Migrations namespace EShopOnAbp.AdministrationService.Migrations
{ {
[DbContext(typeof(AdministrationServiceDbContext))] [DbContext(typeof(AdministrationServiceDbContext))]
[Migration("20211006102113_Initial")] [Migration("20211125123421_Initial")]
partial class Initial partial class Initial
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
{ {
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql)
.HasAnnotation("ProductVersion", "6.0.0-rc.1.21452.10") .HasAnnotation("ProductVersion", "6.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 128); .HasAnnotation("Relational:MaxIdentifierLength", 63);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("ApplicationName") b.Property<string>("ApplicationName")
.HasMaxLength(96) .HasMaxLength(96)
.HasColumnType("nvarchar(96)") .HasColumnType("character varying(96)")
.HasColumnName("ApplicationName"); .HasColumnName("ApplicationName");
b.Property<string>("BrowserInfo") b.Property<string>("BrowserInfo")
.HasMaxLength(512) .HasMaxLength(512)
.HasColumnType("nvarchar(512)") .HasColumnType("character varying(512)")
.HasColumnName("BrowserInfo"); .HasColumnName("BrowserInfo");
b.Property<string>("ClientId") b.Property<string>("ClientId")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)") .HasColumnType("character varying(64)")
.HasColumnName("ClientId"); .HasColumnName("ClientId");
b.Property<string>("ClientIpAddress") b.Property<string>("ClientIpAddress")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)") .HasColumnType("character varying(64)")
.HasColumnName("ClientIpAddress"); .HasColumnName("ClientIpAddress");
b.Property<string>("ClientName") b.Property<string>("ClientName")
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)") .HasColumnType("character varying(128)")
.HasColumnName("ClientName"); .HasColumnName("ClientName");
b.Property<string>("Comments") b.Property<string>("Comments")
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("nvarchar(256)") .HasColumnType("character varying(256)")
.HasColumnName("Comments"); .HasColumnName("Comments");
b.Property<string>("ConcurrencyStamp") b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken() .IsConcurrencyToken()
.HasMaxLength(40) .HasMaxLength(40)
.HasColumnType("nvarchar(40)") .HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp"); .HasColumnName("ConcurrencyStamp");
b.Property<string>("CorrelationId") b.Property<string>("CorrelationId")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)") .HasColumnType("character varying(64)")
.HasColumnName("CorrelationId"); .HasColumnName("CorrelationId");
b.Property<string>("Exceptions") b.Property<string>("Exceptions")
.HasColumnType("nvarchar(max)"); .HasColumnType("text");
b.Property<int>("ExecutionDuration") b.Property<int>("ExecutionDuration")
.HasColumnType("int") .HasColumnType("integer")
.HasColumnName("ExecutionDuration"); .HasColumnName("ExecutionDuration");
b.Property<DateTime>("ExecutionTime") b.Property<DateTime>("ExecutionTime")
.HasColumnType("datetime2"); .HasColumnType("timestamp with time zone");
b.Property<string>("ExtraProperties") b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)") .HasColumnType("text")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<string>("HttpMethod") b.Property<string>("HttpMethod")
.HasMaxLength(16) .HasMaxLength(16)
.HasColumnType("nvarchar(16)") .HasColumnType("character varying(16)")
.HasColumnName("HttpMethod"); .HasColumnName("HttpMethod");
b.Property<int?>("HttpStatusCode") b.Property<int?>("HttpStatusCode")
.HasColumnType("int") .HasColumnType("integer")
.HasColumnName("HttpStatusCode"); .HasColumnName("HttpStatusCode");
b.Property<Guid?>("ImpersonatorTenantId") b.Property<Guid?>("ImpersonatorTenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("ImpersonatorTenantId"); .HasColumnName("ImpersonatorTenantId");
b.Property<Guid?>("ImpersonatorUserId") b.Property<Guid?>("ImpersonatorUserId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("ImpersonatorUserId"); .HasColumnName("ImpersonatorUserId");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.Property<string>("TenantName") b.Property<string>("TenantName")
.HasColumnType("nvarchar(max)"); .HasColumnType("text");
b.Property<string>("Url") b.Property<string>("Url")
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("nvarchar(256)") .HasColumnType("character varying(256)")
.HasColumnName("Url"); .HasColumnName("Url");
b.Property<Guid?>("UserId") b.Property<Guid?>("UserId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("UserId"); .HasColumnName("UserId");
b.Property<string>("UserName") b.Property<string>("UserName")
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("nvarchar(256)") .HasColumnType("character varying(256)")
.HasColumnName("UserName"); .HasColumnName("UserName");
b.HasKey("Id"); b.HasKey("Id");
@ -136,41 +136,41 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<Guid>("AuditLogId") b.Property<Guid>("AuditLogId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("AuditLogId"); .HasColumnName("AuditLogId");
b.Property<int>("ExecutionDuration") b.Property<int>("ExecutionDuration")
.HasColumnType("int") .HasColumnType("integer")
.HasColumnName("ExecutionDuration"); .HasColumnName("ExecutionDuration");
b.Property<DateTime>("ExecutionTime") b.Property<DateTime>("ExecutionTime")
.HasColumnType("datetime2") .HasColumnType("timestamp with time zone")
.HasColumnName("ExecutionTime"); .HasColumnName("ExecutionTime");
b.Property<string>("ExtraProperties") b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)") .HasColumnType("text")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<string>("MethodName") b.Property<string>("MethodName")
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)") .HasColumnType("character varying(128)")
.HasColumnName("MethodName"); .HasColumnName("MethodName");
b.Property<string>("Parameters") b.Property<string>("Parameters")
.HasMaxLength(2000) .HasMaxLength(2000)
.HasColumnType("nvarchar(2000)") .HasColumnType("character varying(2000)")
.HasColumnName("Parameters"); .HasColumnName("Parameters");
b.Property<string>("ServiceName") b.Property<string>("ServiceName")
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("nvarchar(256)") .HasColumnType("character varying(256)")
.HasColumnName("ServiceName"); .HasColumnName("ServiceName");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
@ -185,41 +185,41 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<Guid>("AuditLogId") b.Property<Guid>("AuditLogId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("AuditLogId"); .HasColumnName("AuditLogId");
b.Property<DateTime>("ChangeTime") b.Property<DateTime>("ChangeTime")
.HasColumnType("datetime2") .HasColumnType("timestamp with time zone")
.HasColumnName("ChangeTime"); .HasColumnName("ChangeTime");
b.Property<byte>("ChangeType") b.Property<byte>("ChangeType")
.HasColumnType("tinyint") .HasColumnType("smallint")
.HasColumnName("ChangeType"); .HasColumnName("ChangeType");
b.Property<string>("EntityId") b.Property<string>("EntityId")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)") .HasColumnType("character varying(128)")
.HasColumnName("EntityId"); .HasColumnName("EntityId");
b.Property<Guid?>("EntityTenantId") b.Property<Guid?>("EntityTenantId")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("EntityTypeFullName") b.Property<string>("EntityTypeFullName")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)") .HasColumnType("character varying(128)")
.HasColumnName("EntityTypeFullName"); .HasColumnName("EntityTypeFullName");
b.Property<string>("ExtraProperties") b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)") .HasColumnType("text")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
@ -234,35 +234,35 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<Guid>("EntityChangeId") b.Property<Guid>("EntityChangeId")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("NewValue") b.Property<string>("NewValue")
.HasMaxLength(512) .HasMaxLength(512)
.HasColumnType("nvarchar(512)") .HasColumnType("character varying(512)")
.HasColumnName("NewValue"); .HasColumnName("NewValue");
b.Property<string>("OriginalValue") b.Property<string>("OriginalValue")
.HasMaxLength(512) .HasMaxLength(512)
.HasColumnType("nvarchar(512)") .HasColumnType("character varying(512)")
.HasColumnName("OriginalValue"); .HasColumnName("OriginalValue");
b.Property<string>("PropertyName") b.Property<string>("PropertyName")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)") .HasColumnType("character varying(128)")
.HasColumnName("PropertyName"); .HasColumnName("PropertyName");
b.Property<string>("PropertyTypeFullName") b.Property<string>("PropertyTypeFullName")
.IsRequired() .IsRequired()
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)") .HasColumnType("character varying(64)")
.HasColumnName("PropertyTypeFullName"); .HasColumnName("PropertyTypeFullName");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
@ -275,32 +275,32 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b => modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("ConcurrencyStamp") b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken() .IsConcurrencyToken()
.HasMaxLength(40) .HasMaxLength(40)
.HasColumnType("nvarchar(40)") .HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp"); .HasColumnName("ConcurrencyStamp");
b.Property<Guid>("ContainerId") b.Property<Guid>("ContainerId")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<byte[]>("Content") b.Property<byte[]>("Content")
.HasMaxLength(2147483647) .HasMaxLength(2147483647)
.HasColumnType("varbinary(max)"); .HasColumnType("bytea");
b.Property<string>("ExtraProperties") b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)") .HasColumnType("text")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("nvarchar(256)"); .HasColumnType("character varying(256)");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
@ -315,25 +315,25 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b => modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("ConcurrencyStamp") b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken() .IsConcurrencyToken()
.HasMaxLength(40) .HasMaxLength(40)
.HasColumnType("nvarchar(40)") .HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp"); .HasColumnName("ConcurrencyStamp");
b.Property<string>("ExtraProperties") b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)") .HasColumnType("text")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("character varying(128)");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
@ -346,29 +346,30 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("character varying(128)");
b.Property<string>("ProviderKey") b.Property<string>("ProviderKey")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<string>("ProviderName") b.Property<string>("ProviderName")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<string>("Value") b.Property<string>("Value")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("character varying(128)");
b.HasKey("Id"); b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique();
b.ToTable("AbpFeatureValues", (string)null); b.ToTable("AbpFeatureValues", (string)null);
}); });
@ -376,30 +377,31 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("character varying(128)");
b.Property<string>("ProviderKey") b.Property<string>("ProviderKey")
.IsRequired() .IsRequired()
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<string>("ProviderName") b.Property<string>("ProviderName")
.IsRequired() .IsRequired()
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey")
.IsUnique();
b.ToTable("AbpPermissionGrants", (string)null); b.ToTable("AbpPermissionGrants", (string)null);
}); });
@ -407,29 +409,30 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("character varying(128)");
b.Property<string>("ProviderKey") b.Property<string>("ProviderKey")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<string>("ProviderName") b.Property<string>("ProviderName")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<string>("Value") b.Property<string>("Value")
.IsRequired() .IsRequired()
.HasMaxLength(2048) .HasMaxLength(2048)
.HasColumnType("nvarchar(2048)"); .HasColumnType("character varying(2048)");
b.HasKey("Id"); b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique();
b.ToTable("AbpSettings", (string)null); b.ToTable("AbpSettings", (string)null);
}); });

161
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211006102113_Initial.cs → services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211125123421_Initial.cs

@ -13,28 +13,28 @@ namespace EShopOnAbp.AdministrationService.Migrations
name: "AbpAuditLogs", name: "AbpAuditLogs",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
ApplicationName = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true), ApplicationName = table.Column<string>(type: "character varying(96)", maxLength: 96, nullable: true),
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), UserId = table.Column<Guid>(type: "uuid", nullable: true),
UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), UserName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
TenantName = table.Column<string>(type: "nvarchar(max)", nullable: true), TenantName = table.Column<string>(type: "text", nullable: true),
ImpersonatorUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), ImpersonatorUserId = table.Column<Guid>(type: "uuid", nullable: true),
ImpersonatorTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), ImpersonatorTenantId = table.Column<Guid>(type: "uuid", nullable: true),
ExecutionTime = table.Column<DateTime>(type: "datetime2", nullable: false), ExecutionTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
ExecutionDuration = table.Column<int>(type: "int", nullable: false), ExecutionDuration = table.Column<int>(type: "integer", nullable: false),
ClientIpAddress = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), ClientIpAddress = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
ClientName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), ClientName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: true),
ClientId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), ClientId = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
CorrelationId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), CorrelationId = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
BrowserInfo = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), BrowserInfo = table.Column<string>(type: "character varying(512)", maxLength: 512, nullable: true),
HttpMethod = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true), HttpMethod = table.Column<string>(type: "character varying(16)", maxLength: 16, nullable: true),
Url = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), Url = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true),
Exceptions = table.Column<string>(type: "nvarchar(max)", nullable: true), Exceptions = table.Column<string>(type: "text", nullable: true),
Comments = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), Comments = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true),
HttpStatusCode = table.Column<int>(type: "int", nullable: true), HttpStatusCode = table.Column<int>(type: "integer", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -45,11 +45,11 @@ namespace EShopOnAbp.AdministrationService.Migrations
name: "AbpBlobContainers", name: "AbpBlobContainers",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -60,11 +60,11 @@ namespace EShopOnAbp.AdministrationService.Migrations
name: "AbpFeatureValues", name: "AbpFeatureValues",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
Value = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Value = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), ProviderName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true) ProviderKey = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -75,11 +75,11 @@ namespace EShopOnAbp.AdministrationService.Migrations
name: "AbpPermissionGrants", name: "AbpPermissionGrants",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), ProviderName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false) ProviderKey = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
@ -90,11 +90,11 @@ namespace EShopOnAbp.AdministrationService.Migrations
name: "AbpSettings", name: "AbpSettings",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
Value = table.Column<string>(type: "nvarchar(2048)", maxLength: 2048, nullable: false), Value = table.Column<string>(type: "character varying(2048)", maxLength: 2048, nullable: false),
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), ProviderName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true) ProviderKey = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -105,15 +105,15 @@ namespace EShopOnAbp.AdministrationService.Migrations
name: "AbpAuditLogActions", name: "AbpAuditLogActions",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
AuditLogId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), AuditLogId = table.Column<Guid>(type: "uuid", nullable: false),
ServiceName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), ServiceName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true),
MethodName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), MethodName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: true),
Parameters = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true), Parameters = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: true),
ExecutionTime = table.Column<DateTime>(type: "datetime2", nullable: false), ExecutionTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
ExecutionDuration = table.Column<int>(type: "int", nullable: false), ExecutionDuration = table.Column<int>(type: "integer", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true) ExtraProperties = table.Column<string>(type: "text", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -130,15 +130,15 @@ namespace EShopOnAbp.AdministrationService.Migrations
name: "AbpEntityChanges", name: "AbpEntityChanges",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
AuditLogId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), AuditLogId = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
ChangeTime = table.Column<DateTime>(type: "datetime2", nullable: false), ChangeTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
ChangeType = table.Column<byte>(type: "tinyint", nullable: false), ChangeType = table.Column<byte>(type: "smallint", nullable: false),
EntityTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), EntityTenantId = table.Column<Guid>(type: "uuid", nullable: true),
EntityId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), EntityId = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
EntityTypeFullName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), EntityTypeFullName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true) ExtraProperties = table.Column<string>(type: "text", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -155,13 +155,13 @@ namespace EShopOnAbp.AdministrationService.Migrations
name: "AbpBlobs", name: "AbpBlobs",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
ContainerId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ContainerId = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), Name = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
Content = table.Column<byte[]>(type: "varbinary(max)", maxLength: 2147483647, nullable: true), Content = table.Column<byte[]>(type: "bytea", maxLength: 2147483647, nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -178,13 +178,13 @@ namespace EShopOnAbp.AdministrationService.Migrations
name: "AbpEntityPropertyChanges", name: "AbpEntityPropertyChanges",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
EntityChangeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), EntityChangeId = table.Column<Guid>(type: "uuid", nullable: false),
NewValue = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), NewValue = table.Column<string>(type: "character varying(512)", maxLength: 512, nullable: true),
OriginalValue = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), OriginalValue = table.Column<string>(type: "character varying(512)", maxLength: 512, nullable: true),
PropertyName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), PropertyName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
PropertyTypeFullName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false) PropertyTypeFullName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
@ -203,7 +203,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
column: "AuditLogId"); column: "AuditLogId");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime", name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_Executio~",
table: "AbpAuditLogActions", table: "AbpAuditLogActions",
columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" }); columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" });
@ -250,17 +250,20 @@ namespace EShopOnAbp.AdministrationService.Migrations
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey",
table: "AbpFeatureValues", table: "AbpFeatureValues",
columns: new[] { "Name", "ProviderName", "ProviderKey" }); columns: new[] { "Name", "ProviderName", "ProviderKey" },
unique: true);
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_AbpPermissionGrants_Name_ProviderName_ProviderKey", name: "IX_AbpPermissionGrants_TenantId_Name_ProviderName_ProviderKey",
table: "AbpPermissionGrants", table: "AbpPermissionGrants",
columns: new[] { "Name", "ProviderName", "ProviderKey" }); columns: new[] { "TenantId", "Name", "ProviderName", "ProviderKey" },
unique: true);
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_AbpSettings_Name_ProviderName_ProviderKey", name: "IX_AbpSettings_Name_ProviderName_ProviderKey",
table: "AbpSettings", table: "AbpSettings",
columns: new[] { "Name", "ProviderName", "ProviderKey" }); columns: new[] { "Name", "ProviderName", "ProviderKey" },
unique: true);
} }
protected override void Down(MigrationBuilder migrationBuilder) protected override void Down(MigrationBuilder migrationBuilder)

167
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/AdministrationServiceDbContextModelSnapshot.cs

@ -3,8 +3,8 @@ using System;
using EShopOnAbp.AdministrationService.EntityFrameworkCore; using EShopOnAbp.AdministrationService.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore;
#nullable disable #nullable disable
@ -18,108 +18,108 @@ namespace EShopOnAbp.AdministrationService.Migrations
{ {
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql)
.HasAnnotation("ProductVersion", "6.0.0-rc.1.21452.10") .HasAnnotation("ProductVersion", "6.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 128); .HasAnnotation("Relational:MaxIdentifierLength", 63);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("ApplicationName") b.Property<string>("ApplicationName")
.HasMaxLength(96) .HasMaxLength(96)
.HasColumnType("nvarchar(96)") .HasColumnType("character varying(96)")
.HasColumnName("ApplicationName"); .HasColumnName("ApplicationName");
b.Property<string>("BrowserInfo") b.Property<string>("BrowserInfo")
.HasMaxLength(512) .HasMaxLength(512)
.HasColumnType("nvarchar(512)") .HasColumnType("character varying(512)")
.HasColumnName("BrowserInfo"); .HasColumnName("BrowserInfo");
b.Property<string>("ClientId") b.Property<string>("ClientId")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)") .HasColumnType("character varying(64)")
.HasColumnName("ClientId"); .HasColumnName("ClientId");
b.Property<string>("ClientIpAddress") b.Property<string>("ClientIpAddress")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)") .HasColumnType("character varying(64)")
.HasColumnName("ClientIpAddress"); .HasColumnName("ClientIpAddress");
b.Property<string>("ClientName") b.Property<string>("ClientName")
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)") .HasColumnType("character varying(128)")
.HasColumnName("ClientName"); .HasColumnName("ClientName");
b.Property<string>("Comments") b.Property<string>("Comments")
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("nvarchar(256)") .HasColumnType("character varying(256)")
.HasColumnName("Comments"); .HasColumnName("Comments");
b.Property<string>("ConcurrencyStamp") b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken() .IsConcurrencyToken()
.HasMaxLength(40) .HasMaxLength(40)
.HasColumnType("nvarchar(40)") .HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp"); .HasColumnName("ConcurrencyStamp");
b.Property<string>("CorrelationId") b.Property<string>("CorrelationId")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)") .HasColumnType("character varying(64)")
.HasColumnName("CorrelationId"); .HasColumnName("CorrelationId");
b.Property<string>("Exceptions") b.Property<string>("Exceptions")
.HasColumnType("nvarchar(max)"); .HasColumnType("text");
b.Property<int>("ExecutionDuration") b.Property<int>("ExecutionDuration")
.HasColumnType("int") .HasColumnType("integer")
.HasColumnName("ExecutionDuration"); .HasColumnName("ExecutionDuration");
b.Property<DateTime>("ExecutionTime") b.Property<DateTime>("ExecutionTime")
.HasColumnType("datetime2"); .HasColumnType("timestamp with time zone");
b.Property<string>("ExtraProperties") b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)") .HasColumnType("text")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<string>("HttpMethod") b.Property<string>("HttpMethod")
.HasMaxLength(16) .HasMaxLength(16)
.HasColumnType("nvarchar(16)") .HasColumnType("character varying(16)")
.HasColumnName("HttpMethod"); .HasColumnName("HttpMethod");
b.Property<int?>("HttpStatusCode") b.Property<int?>("HttpStatusCode")
.HasColumnType("int") .HasColumnType("integer")
.HasColumnName("HttpStatusCode"); .HasColumnName("HttpStatusCode");
b.Property<Guid?>("ImpersonatorTenantId") b.Property<Guid?>("ImpersonatorTenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("ImpersonatorTenantId"); .HasColumnName("ImpersonatorTenantId");
b.Property<Guid?>("ImpersonatorUserId") b.Property<Guid?>("ImpersonatorUserId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("ImpersonatorUserId"); .HasColumnName("ImpersonatorUserId");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.Property<string>("TenantName") b.Property<string>("TenantName")
.HasColumnType("nvarchar(max)"); .HasColumnType("text");
b.Property<string>("Url") b.Property<string>("Url")
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("nvarchar(256)") .HasColumnType("character varying(256)")
.HasColumnName("Url"); .HasColumnName("Url");
b.Property<Guid?>("UserId") b.Property<Guid?>("UserId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("UserId"); .HasColumnName("UserId");
b.Property<string>("UserName") b.Property<string>("UserName")
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("nvarchar(256)") .HasColumnType("character varying(256)")
.HasColumnName("UserName"); .HasColumnName("UserName");
b.HasKey("Id"); b.HasKey("Id");
@ -134,41 +134,41 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<Guid>("AuditLogId") b.Property<Guid>("AuditLogId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("AuditLogId"); .HasColumnName("AuditLogId");
b.Property<int>("ExecutionDuration") b.Property<int>("ExecutionDuration")
.HasColumnType("int") .HasColumnType("integer")
.HasColumnName("ExecutionDuration"); .HasColumnName("ExecutionDuration");
b.Property<DateTime>("ExecutionTime") b.Property<DateTime>("ExecutionTime")
.HasColumnType("datetime2") .HasColumnType("timestamp with time zone")
.HasColumnName("ExecutionTime"); .HasColumnName("ExecutionTime");
b.Property<string>("ExtraProperties") b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)") .HasColumnType("text")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<string>("MethodName") b.Property<string>("MethodName")
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)") .HasColumnType("character varying(128)")
.HasColumnName("MethodName"); .HasColumnName("MethodName");
b.Property<string>("Parameters") b.Property<string>("Parameters")
.HasMaxLength(2000) .HasMaxLength(2000)
.HasColumnType("nvarchar(2000)") .HasColumnType("character varying(2000)")
.HasColumnName("Parameters"); .HasColumnName("Parameters");
b.Property<string>("ServiceName") b.Property<string>("ServiceName")
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("nvarchar(256)") .HasColumnType("character varying(256)")
.HasColumnName("ServiceName"); .HasColumnName("ServiceName");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
@ -183,41 +183,41 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<Guid>("AuditLogId") b.Property<Guid>("AuditLogId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("AuditLogId"); .HasColumnName("AuditLogId");
b.Property<DateTime>("ChangeTime") b.Property<DateTime>("ChangeTime")
.HasColumnType("datetime2") .HasColumnType("timestamp with time zone")
.HasColumnName("ChangeTime"); .HasColumnName("ChangeTime");
b.Property<byte>("ChangeType") b.Property<byte>("ChangeType")
.HasColumnType("tinyint") .HasColumnType("smallint")
.HasColumnName("ChangeType"); .HasColumnName("ChangeType");
b.Property<string>("EntityId") b.Property<string>("EntityId")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)") .HasColumnType("character varying(128)")
.HasColumnName("EntityId"); .HasColumnName("EntityId");
b.Property<Guid?>("EntityTenantId") b.Property<Guid?>("EntityTenantId")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("EntityTypeFullName") b.Property<string>("EntityTypeFullName")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)") .HasColumnType("character varying(128)")
.HasColumnName("EntityTypeFullName"); .HasColumnName("EntityTypeFullName");
b.Property<string>("ExtraProperties") b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)") .HasColumnType("text")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
@ -232,35 +232,35 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<Guid>("EntityChangeId") b.Property<Guid>("EntityChangeId")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("NewValue") b.Property<string>("NewValue")
.HasMaxLength(512) .HasMaxLength(512)
.HasColumnType("nvarchar(512)") .HasColumnType("character varying(512)")
.HasColumnName("NewValue"); .HasColumnName("NewValue");
b.Property<string>("OriginalValue") b.Property<string>("OriginalValue")
.HasMaxLength(512) .HasMaxLength(512)
.HasColumnType("nvarchar(512)") .HasColumnType("character varying(512)")
.HasColumnName("OriginalValue"); .HasColumnName("OriginalValue");
b.Property<string>("PropertyName") b.Property<string>("PropertyName")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)") .HasColumnType("character varying(128)")
.HasColumnName("PropertyName"); .HasColumnName("PropertyName");
b.Property<string>("PropertyTypeFullName") b.Property<string>("PropertyTypeFullName")
.IsRequired() .IsRequired()
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)") .HasColumnType("character varying(64)")
.HasColumnName("PropertyTypeFullName"); .HasColumnName("PropertyTypeFullName");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
@ -273,32 +273,32 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b => modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("ConcurrencyStamp") b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken() .IsConcurrencyToken()
.HasMaxLength(40) .HasMaxLength(40)
.HasColumnType("nvarchar(40)") .HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp"); .HasColumnName("ConcurrencyStamp");
b.Property<Guid>("ContainerId") b.Property<Guid>("ContainerId")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<byte[]>("Content") b.Property<byte[]>("Content")
.HasMaxLength(2147483647) .HasMaxLength(2147483647)
.HasColumnType("varbinary(max)"); .HasColumnType("bytea");
b.Property<string>("ExtraProperties") b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)") .HasColumnType("text")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("nvarchar(256)"); .HasColumnType("character varying(256)");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
@ -313,25 +313,25 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b => modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("ConcurrencyStamp") b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken() .IsConcurrencyToken()
.HasMaxLength(40) .HasMaxLength(40)
.HasColumnType("nvarchar(40)") .HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp"); .HasColumnName("ConcurrencyStamp");
b.Property<string>("ExtraProperties") b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)") .HasColumnType("text")
.HasColumnName("ExtraProperties"); .HasColumnName("ExtraProperties");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("character varying(128)");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
@ -344,29 +344,30 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("character varying(128)");
b.Property<string>("ProviderKey") b.Property<string>("ProviderKey")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<string>("ProviderName") b.Property<string>("ProviderName")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<string>("Value") b.Property<string>("Value")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("character varying(128)");
b.HasKey("Id"); b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique();
b.ToTable("AbpFeatureValues", (string)null); b.ToTable("AbpFeatureValues", (string)null);
}); });
@ -374,30 +375,31 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("character varying(128)");
b.Property<string>("ProviderKey") b.Property<string>("ProviderKey")
.IsRequired() .IsRequired()
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<string>("ProviderName") b.Property<string>("ProviderName")
.IsRequired() .IsRequired()
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uuid")
.HasColumnName("TenantId"); .HasColumnName("TenantId");
b.HasKey("Id"); b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey")
.IsUnique();
b.ToTable("AbpPermissionGrants", (string)null); b.ToTable("AbpPermissionGrants", (string)null);
}); });
@ -405,29 +407,30 @@ namespace EShopOnAbp.AdministrationService.Migrations
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); .HasColumnType("uuid");
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("character varying(128)");
b.Property<string>("ProviderKey") b.Property<string>("ProviderKey")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<string>("ProviderName") b.Property<string>("ProviderName")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("character varying(64)");
b.Property<string>("Value") b.Property<string>("Value")
.IsRequired() .IsRequired()
.HasMaxLength(2048) .HasMaxLength(2048)
.HasColumnType("nvarchar(2048)"); .HasColumnType("character varying(2048)");
b.HasKey("Id"); b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique();
b.ToTable("AbpSettings", (string)null); b.ToTable("AbpSettings", (string)null);
}); });

2
services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/appsettings.json

@ -33,7 +33,7 @@
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"ConnectionStrings": { "ConnectionStrings": {
"AdministrationService": "Server=localhost,1434;Database=EShopOnAbp_Administration;User Id=sa;password=myPassw0rd;MultipleActiveResultSets=true" "AdministrationService": "User ID=postgres;Password=myPassw0rd;Host=localhost;Port=5432;Database=EShopOnAbp_Administration;Pooling=false;"
}, },
"StringEncryption": { "StringEncryption": {
"DefaultPassPhrase": "gsKnGZ041HLL4IM8" "DefaultPassPhrase": "gsKnGZ041HLL4IM8"

Loading…
Cancel
Save