Browse Source

Added migration

pull/148/head
Yunus Emre Kalkan 1 year ago
parent
commit
0e9fde4bac
  1. 3379
      src/EventHub.EntityFrameworkCore/Migrations/20250917105808_Upgrade_Abp_Version_9_3_3.Designer.cs
  2. 70
      src/EventHub.EntityFrameworkCore/Migrations/20250917105808_Upgrade_Abp_Version_9_3_3.cs
  3. 42
      src/EventHub.EntityFrameworkCore/Migrations/EventHubDbContextModelSnapshot.cs

3379
src/EventHub.EntityFrameworkCore/Migrations/20250917105808_Upgrade_Abp_Version_9_3_3.Designer.cs

File diff suppressed because it is too large

70
src/EventHub.EntityFrameworkCore/Migrations/20250917105808_Upgrade_Abp_Version_9_3_3.cs

@ -0,0 +1,70 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EventHub.Migrations
{
/// <inheritdoc />
public partial class Upgrade_Abp_Version_9_3_3 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "CreationTime",
table: "AbpRoles",
type: "timestamp without time zone",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<DateTime>(
name: "CreationTime",
table: "AbpClaimTypes",
type: "timestamp without time zone",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<string>(
name: "ApplicationName",
table: "AbpBackgroundJobs",
type: "character varying(96)",
maxLength: 96,
nullable: true);
migrationBuilder.CreateTable(
name: "AbpAuditLogExcelFiles",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uuid", nullable: true),
FileName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true),
CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uuid", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpAuditLogExcelFiles", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AbpAuditLogExcelFiles");
migrationBuilder.DropColumn(
name: "CreationTime",
table: "AbpRoles");
migrationBuilder.DropColumn(
name: "CreationTime",
table: "AbpClaimTypes");
migrationBuilder.DropColumn(
name: "ApplicationName",
table: "AbpBackgroundJobs");
}
}
}

42
src/EventHub.EntityFrameworkCore/Migrations/EventHubDbContextModelSnapshot.cs

@ -19,7 +19,7 @@ namespace EventHub.Migrations
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql) .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql)
.HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("ProductVersion", "9.0.5")
.HasAnnotation("Relational:MaxIdentifierLength", 63); .HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
@ -670,6 +670,34 @@ namespace EventHub.Migrations
b.ToTable("AbpAuditLogActions", (string)null); b.ToTable("AbpAuditLogActions", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogExcelFile", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property<string>("FileName")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("FileName");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("TenantId");
b.HasKey("Id");
b.ToTable("AbpAuditLogExcelFiles", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
@ -767,6 +795,10 @@ namespace EventHub.Migrations
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
.HasColumnType("uuid"); .HasColumnType("uuid");
b.Property<string>("ApplicationName")
.HasMaxLength(96)
.HasColumnType("character varying(96)");
b.Property<string>("ConcurrencyStamp") b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken() .IsConcurrencyToken()
.IsRequired() .IsRequired()
@ -910,6 +942,10 @@ namespace EventHub.Migrations
.HasColumnType("character varying(40)") .HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp"); .HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property<string>("Description") b.Property<string>("Description")
.HasMaxLength(256) .HasMaxLength(256)
.HasColumnType("character varying(256)"); .HasColumnType("character varying(256)");
@ -983,6 +1019,10 @@ namespace EventHub.Migrations
.HasColumnType("character varying(40)") .HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp"); .HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property<int>("EntityVersion") b.Property<int>("EntityVersion")
.HasColumnType("integer"); .HasColumnType("integer");

Loading…
Cancel
Save