|
|
|
@ -2,9 +2,9 @@ |
|
|
|
using EShopOnAbp.OrderingService.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
#nullable disable |
|
|
|
@ -12,18 +12,18 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
namespace EShopOnAbp.OrderingService.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(OrderingServiceDbContext))] |
|
|
|
[Migration("20211012121150_Initial")] |
|
|
|
[Migration("20211125130659_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|
|
|
{ |
|
|
|
#pragma warning disable 612, 618
|
|
|
|
modelBuilder |
|
|
|
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) |
|
|
|
.HasAnnotation("ProductVersion", "6.0.0-rc.1.21452.10") |
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128); |
|
|
|
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql) |
|
|
|
.HasAnnotation("ProductVersion", "6.0.0") |
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63); |
|
|
|
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); |
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); |
|
|
|
#pragma warning restore 612, 618
|
|
|
|
} |
|
|
|
} |