Added ABP v8.0 upgrade migrations

This commit is contained in:
İsmail ÇAĞDAŞ 2022-12-13 16:33:29 +03:00
Родитель 388870b279
Коммит d961c167d3
6 изменённых файлов: 2071 добавлений и 46 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,58 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AbpCompanyName.AbpProjectName.Migrations
{
/// <inheritdoc />
public partial class UpgradedToAbp80 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "TargetNotifiers",
table: "AbpUserNotifications",
type: "nvarchar(1024)",
maxLength: 1024,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TargetNotifiers",
table: "AbpNotifications",
type: "nvarchar(1024)",
maxLength: 1024,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "TargetNotifiers",
table: "AbpUserNotifications",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(1024)",
oldMaxLength: 1024,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TargetNotifiers",
table: "AbpNotifications",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(1024)",
oldMaxLength: 1024,
oldNullable: true);
}
}
}

Просмотреть файл

@ -17,10 +17,10 @@ namespace AbpCompanyName.AbpProjectName.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.4")
.HasAnnotation("ProductVersion", "7.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("Abp.Application.Editions.Edition", b =>
{
@ -28,7 +28,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -72,7 +72,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -102,6 +102,8 @@ namespace AbpCompanyName.AbpProjectName.Migrations
b.ToTable("AbpFeatures");
b.HasDiscriminator<string>("Discriminator").HasValue("FeatureSetting");
b.UseTphMappingStrategy();
});
modelBuilder.Entity("Abp.Auditing.AuditLog", b =>
@ -110,7 +112,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("BrowserInfo")
.HasMaxLength(512)
@ -186,7 +188,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -216,6 +218,8 @@ namespace AbpCompanyName.AbpProjectName.Migrations
b.ToTable("AbpPermissions");
b.HasDiscriminator<string>("Discriminator").HasValue("PermissionSetting");
b.UseTphMappingStrategy();
});
modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b =>
@ -224,7 +228,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("ClaimType")
.HasMaxLength(256)
@ -260,7 +264,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -321,7 +325,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("ClaimType")
.HasMaxLength(256)
@ -357,7 +361,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("LoginProvider")
.IsRequired()
@ -396,7 +400,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("BrowserInfo")
.HasMaxLength(512)
@ -445,7 +449,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -480,7 +484,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -514,7 +518,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime?>("ExpireDate")
.HasColumnType("datetime2");
@ -552,7 +556,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -598,7 +602,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -642,7 +646,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("DynamicPropertyId")
.HasColumnType("int");
@ -671,7 +675,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<int>("DynamicEntityPropertyId")
.HasColumnType("int");
@ -699,7 +703,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("DisplayName")
.HasColumnType("nvarchar(max)");
@ -732,7 +736,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<int>("DynamicPropertyId")
.HasColumnType("int");
@ -757,7 +761,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime>("ChangeTime")
.HasColumnType("datetime2");
@ -794,7 +798,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("BrowserInfo")
.HasMaxLength(512)
@ -847,7 +851,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<long>("EntityChangeId")
.HasColumnType("bigint");
@ -890,7 +894,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -946,7 +950,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -1035,7 +1039,8 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.HasColumnType("tinyint");
b.Property<string>("TargetNotifiers")
.HasColumnType("nvarchar(max)");
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property<string>("TenantIds")
.HasMaxLength(131072)
@ -1156,7 +1161,8 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.HasColumnType("int");
b.Property<string>("TargetNotifiers")
.HasColumnType("nvarchar(max)");
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property<int?>("TenantId")
.HasColumnType("int");
@ -1180,7 +1186,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("Code")
.IsRequired()
@ -1234,7 +1240,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -1370,7 +1376,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
@ -1445,7 +1451,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<int>("AccessFailedCount")
.HasColumnType("int");
@ -1573,7 +1579,7 @@ namespace AbpCompanyName.AbpProjectName.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ConnectionString")
.HasMaxLength(1024)
@ -1645,6 +1651,17 @@ namespace AbpCompanyName.AbpProjectName.Migrations
b.HasDiscriminator().HasValue("EditionFeatureSetting");
});
modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b =>
{
b.HasBaseType("Abp.Application.Features.FeatureSetting");
b.HasIndex("TenantId", "Name");
b.ToTable("AbpFeatures");
b.HasDiscriminator().HasValue("TenantFeatureSetting");
});
modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b =>
{
b.HasBaseType("Abp.Authorization.PermissionSetting");
@ -1673,17 +1690,6 @@ namespace AbpCompanyName.AbpProjectName.Migrations
b.HasDiscriminator().HasValue("UserPermissionSetting");
});
modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b =>
{
b.HasBaseType("Abp.Application.Features.FeatureSetting");
b.HasIndex("TenantId", "Name");
b.ToTable("AbpFeatures");
b.HasDiscriminator().HasValue("TenantFeatureSetting");
});
modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b =>
{
b.HasOne("AbpCompanyName.AbpProjectName.Authorization.Roles.Role", null)

Просмотреть файл

@ -1,5 +1,5 @@
{
"ConnectionStrings": {
"Default": "Server=localhost; Database=AbpProjectNameDb; Trusted_Connection=True;"
"Default": "Server=localhost; Database=AbpProjectNameDb; Trusted_Connection=True; TrustServerCertificate=True;"
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"Default": "Server=localhost; Database=AbpProjectNameDb; Trusted_Connection=True;"
"Default": "Server=localhost; Database=AbpProjectNameDb; Trusted_Connection=True; TrustServerCertificate=True;"
},
"App": {
"ServerRootAddress": "https://localhost:44311/",

Просмотреть файл

@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"Default": "Server=localhost; Database=AbpProjectNameDb; Trusted_Connection=True;"
"Default": "Server=localhost; Database=AbpProjectNameDb; Trusted_Connection=True; TrustServerCertificate=True;"
},
"Authentication": {
"JwtBearer": {