Browse Source

Re-create the initial database migration.

pull/29/head
Halil İbrahim Kalkan 6 years ago
parent
commit
0ebeb23171
  1. 6
      src/EventHub.Domain/Data/EventHubDbMigrationService.cs
  2. 2
      src/EventHub.Domain/EventHubConsts.cs
  3. 2307
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116163835_Initial.Designer.cs
  4. 2185
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116170949_Removed_MultiTenancy.Designer.cs
  5. 88
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116170949_Removed_MultiTenancy.cs
  6. 2244
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116193331_Added_Organizations.Designer.cs
  7. 50
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116193331_Added_Organizations.cs
  8. 2356
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210123172353_Added_Events.Designer.cs
  9. 146
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210123172353_Added_Events.cs
  10. 2368
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210124103656_Added_Url_To_Event.Designer.cs
  11. 46
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210124103656_Added_Url_To_Event.cs
  12. 2442
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210124142029_Added_EventRegistration.Designer.cs
  13. 85
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210124142029_Added_EventRegistration.cs
  14. 2496
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210202085532_Added_OrganizationMembership.Designer.cs
  15. 54
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210202085532_Added_OrganizationMembership.cs
  16. 2499
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210203084538_Added_IsRemindingEmailSent_To_Event.Designer.cs
  17. 24
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210203084538_Added_IsRemindingEmailSent_To_Event.cs
  18. 2502
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210203124302_Added_IsEmailSentToMembers_To_Event.Designer.cs
  19. 24
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210203124302_Added_IsEmailSentToMembers_To_Event.cs
  20. 2506
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208073446_Added_Link_To_Event.Designer.cs
  21. 24
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208073446_Added_Link_To_Event.cs
  22. 2534
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208140845_Added_Countries.Designer.cs
  23. 64
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208140845_Added_Countries.cs
  24. 2538
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208141144_Added_City_To_Event.Designer.cs
  25. 24
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208141144_Added_City_To_Event.cs
  26. 2542
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209072715_Added_Language_To_Event.Designer.cs
  27. 24
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209072715_Added_Language_To_Event.cs
  28. 2542
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209081448_Renamed_Link_To_OnlineLink.Designer.cs
  29. 23
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209081448_Renamed_Link_To_OnlineLink.cs
  30. 2624
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209143744_Added_Blob_Database.Designer.cs
  31. 73
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209143744_Added_Blob_Database.cs
  32. 24
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210210110442_Added_TimingChangeCount_To_Event.cs
  33. 2633
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210211115505_IsTimingChangeEmailSent_Added_To_EventRegistration.Designer.cs
  34. 24
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210211115505_IsTimingChangeEmailSent_Added_To_EventRegistration.cs
  35. 5260
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210307195605_Initial.Designer.cs
  36. 356
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210307195605_Initial.cs
  37. 14
      src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/EventHubMigrationsDbContextModelSnapshot.cs

6
src/EventHub.Domain/Data/EventHubDbMigrationService.cs

@ -9,7 +9,6 @@ using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Logging.Abstractions;
using Volo.Abp.Data; using Volo.Abp.Data;
using Volo.Abp.DependencyInjection; using Volo.Abp.DependencyInjection;
using Volo.Abp.MultiTenancy;
namespace EventHub.Data namespace EventHub.Data
{ {
@ -19,16 +18,13 @@ namespace EventHub.Data
private readonly IDataSeeder _dataSeeder; private readonly IDataSeeder _dataSeeder;
private readonly IEnumerable<IEventHubDbSchemaMigrator> _dbSchemaMigrators; private readonly IEnumerable<IEventHubDbSchemaMigrator> _dbSchemaMigrators;
private readonly ICurrentTenant _currentTenant;
public EventHubDbMigrationService( public EventHubDbMigrationService(
IDataSeeder dataSeeder, IDataSeeder dataSeeder,
IEnumerable<IEventHubDbSchemaMigrator> dbSchemaMigrators, IEnumerable<IEventHubDbSchemaMigrator> dbSchemaMigrators)
ICurrentTenant currentTenant)
{ {
_dataSeeder = dataSeeder; _dataSeeder = dataSeeder;
_dbSchemaMigrators = dbSchemaMigrators; _dbSchemaMigrators = dbSchemaMigrators;
_currentTenant = currentTenant;
Logger = NullLogger<EventHubDbMigrationService>.Instance; Logger = NullLogger<EventHubDbMigrationService>.Instance;
} }

2
src/EventHub.Domain/EventHubConsts.cs

@ -2,7 +2,7 @@
{ {
public static class EventHubConsts public static class EventHubConsts
{ {
public const string DbTablePrefix = "App"; public const string DbTablePrefix = "Eh";
public const string DbSchema = null; public const string DbSchema = null;
} }

2307
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116163835_Initial.Designer.cs

File diff suppressed because it is too large

2185
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116170949_Removed_MultiTenancy.Designer.cs

File diff suppressed because it is too large

88
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116170949_Removed_MultiTenancy.cs

@ -1,88 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Removed_MultiTenancy : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AbpFeatureValues");
migrationBuilder.DropTable(
name: "AbpTenantConnectionStrings");
migrationBuilder.DropTable(
name: "AbpTenants");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AbpFeatureValues",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Value = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpFeatureValues", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpTenants",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpTenants", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpTenantConnectionStrings",
columns: table => new
{
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
Value = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name });
table.ForeignKey(
name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId",
column: x => x.TenantId,
principalTable: "AbpTenants",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey",
table: "AbpFeatureValues",
columns: new[] { "Name", "ProviderName", "ProviderKey" });
migrationBuilder.CreateIndex(
name: "IX_AbpTenants_Name",
table: "AbpTenants",
column: "Name");
}
}
}

2244
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116193331_Added_Organizations.Designer.cs

File diff suppressed because it is too large

50
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116193331_Added_Organizations.cs

@ -1,50 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_Organizations : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AppOrganizations",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
OwnerUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false),
DisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
Website = table.Column<string>(type: "nvarchar(max)", nullable: true),
TwitterUsername = table.Column<string>(type: "nvarchar(max)", nullable: true),
GitHubUsername = table.Column<string>(type: "nvarchar(max)", nullable: true),
FacebookUsername = table.Column<string>(type: "nvarchar(max)", nullable: true),
InstagramUsername = table.Column<string>(type: "nvarchar(max)", nullable: true),
MediumUsername = table.Column<string>(type: "nvarchar(max)", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AppOrganizations", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_AppOrganizations_DisplayName",
table: "AppOrganizations",
column: "DisplayName");
migrationBuilder.CreateIndex(
name: "IX_AppOrganizations_Name",
table: "AppOrganizations",
column: "Name");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AppOrganizations");
}
}
}

2356
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210123172353_Added_Events.Designer.cs

File diff suppressed because it is too large

146
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210123172353_Added_Events.cs

@ -1,146 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_Events : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Description",
table: "AppOrganizations",
type: "nvarchar(1000)",
maxLength: 1000,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "CreationTime",
table: "AppOrganizations",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<Guid>(
name: "CreatorId",
table: "AppOrganizations",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "DeleterId",
table: "AppOrganizations",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "DeletionTime",
table: "AppOrganizations",
type: "datetime2",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "IsDeleted",
table: "AppOrganizations",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<DateTime>(
name: "LastModificationTime",
table: "AppOrganizations",
type: "datetime2",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "LastModifierId",
table: "AppOrganizations",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.CreateTable(
name: "AppEvents",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
OrganizationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Title = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
StartTime = table.Column<DateTime>(type: "datetime2", nullable: false),
EndTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Description = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false),
IsOnline = table.Column<bool>(type: "bit", nullable: false),
Capacity = table.Column<int>(type: "int", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AppEvents", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_AppEvents_OrganizationId_StartTime",
table: "AppEvents",
columns: new[] { "OrganizationId", "StartTime" });
migrationBuilder.CreateIndex(
name: "IX_AppEvents_StartTime",
table: "AppEvents",
column: "StartTime");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AppEvents");
migrationBuilder.DropColumn(
name: "CreationTime",
table: "AppOrganizations");
migrationBuilder.DropColumn(
name: "CreatorId",
table: "AppOrganizations");
migrationBuilder.DropColumn(
name: "DeleterId",
table: "AppOrganizations");
migrationBuilder.DropColumn(
name: "DeletionTime",
table: "AppOrganizations");
migrationBuilder.DropColumn(
name: "IsDeleted",
table: "AppOrganizations");
migrationBuilder.DropColumn(
name: "LastModificationTime",
table: "AppOrganizations");
migrationBuilder.DropColumn(
name: "LastModifierId",
table: "AppOrganizations");
migrationBuilder.AlterColumn<string>(
name: "Description",
table: "AppOrganizations",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(1000)",
oldMaxLength: 1000);
}
}
}

2368
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210124103656_Added_Url_To_Event.Designer.cs

File diff suppressed because it is too large

46
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210124103656_Added_Url_To_Event.cs

@ -1,46 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_Url_To_Event : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Url",
table: "AppEvents",
type: "nvarchar(69)",
maxLength: 69,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "UrlCode",
table: "AppEvents",
type: "nvarchar(8)",
maxLength: 8,
nullable: false,
defaultValue: "");
migrationBuilder.CreateIndex(
name: "IX_AppEvents_UrlCode",
table: "AppEvents",
column: "UrlCode");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_AppEvents_UrlCode",
table: "AppEvents");
migrationBuilder.DropColumn(
name: "Url",
table: "AppEvents");
migrationBuilder.DropColumn(
name: "UrlCode",
table: "AppEvents");
}
}
}

2442
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210124142029_Added_EventRegistration.Designer.cs

File diff suppressed because it is too large

85
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210124142029_Added_EventRegistration.cs

@ -1,85 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_EventRegistration : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AppEventRegistrations",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
EventId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AppEventRegistrations", x => x.Id);
table.ForeignKey(
name: "FK_AppEventRegistrations_AbpUsers_UserId",
column: x => x.UserId,
principalTable: "AbpUsers",
principalColumn: "Id");
table.ForeignKey(
name: "FK_AppEventRegistrations_AppEvents_EventId",
column: x => x.EventId,
principalTable: "AppEvents",
principalColumn: "Id");
});
migrationBuilder.CreateIndex(
name: "IX_AppOrganizations_OwnerUserId",
table: "AppOrganizations",
column: "OwnerUserId");
migrationBuilder.CreateIndex(
name: "IX_AppEventRegistrations_EventId_UserId",
table: "AppEventRegistrations",
columns: new[] { "EventId", "UserId" });
migrationBuilder.CreateIndex(
name: "IX_AppEventRegistrations_UserId",
table: "AppEventRegistrations",
column: "UserId");
migrationBuilder.AddForeignKey(
name: "FK_AppEvents_AppOrganizations_OrganizationId",
table: "AppEvents",
column: "OrganizationId",
principalTable: "AppOrganizations",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_AppOrganizations_AbpUsers_OwnerUserId",
table: "AppOrganizations",
column: "OwnerUserId",
principalTable: "AbpUsers",
principalColumn: "Id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_AppEvents_AppOrganizations_OrganizationId",
table: "AppEvents");
migrationBuilder.DropForeignKey(
name: "FK_AppOrganizations_AbpUsers_OwnerUserId",
table: "AppOrganizations");
migrationBuilder.DropTable(
name: "AppEventRegistrations");
migrationBuilder.DropIndex(
name: "IX_AppOrganizations_OwnerUserId",
table: "AppOrganizations");
}
}
}

2496
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210202085532_Added_OrganizationMembership.Designer.cs

File diff suppressed because it is too large

54
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210202085532_Added_OrganizationMembership.cs

@ -1,54 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_OrganizationMembership : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AppOrganizationMemberships",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
OrganizationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AppOrganizationMemberships", x => x.Id);
table.ForeignKey(
name: "FK_AppOrganizationMemberships_AbpUsers_UserId",
column: x => x.UserId,
principalTable: "AbpUsers",
principalColumn: "Id");
table.ForeignKey(
name: "FK_AppOrganizationMemberships_AppOrganizations_OrganizationId",
column: x => x.OrganizationId,
principalTable: "AppOrganizations",
principalColumn: "Id");
});
migrationBuilder.CreateIndex(
name: "IX_AppOrganizationMemberships_OrganizationId_UserId",
table: "AppOrganizationMemberships",
columns: new[] { "OrganizationId", "UserId" });
migrationBuilder.CreateIndex(
name: "IX_AppOrganizationMemberships_UserId",
table: "AppOrganizationMemberships",
column: "UserId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AppOrganizationMemberships");
}
}
}

2499
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210203084538_Added_IsRemindingEmailSent_To_Event.Designer.cs

File diff suppressed because it is too large

24
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210203084538_Added_IsRemindingEmailSent_To_Event.cs

@ -1,24 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_IsRemindingEmailSent_To_Event : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsRemindingEmailSent",
table: "AppEvents",
type: "bit",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsRemindingEmailSent",
table: "AppEvents");
}
}
}

2502
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210203124302_Added_IsEmailSentToMembers_To_Event.Designer.cs

File diff suppressed because it is too large

24
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210203124302_Added_IsEmailSentToMembers_To_Event.cs

@ -1,24 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_IsEmailSentToMembers_To_Event : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsEmailSentToMembers",
table: "AppEvents",
type: "bit",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsEmailSentToMembers",
table: "AppEvents");
}
}
}

2506
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208073446_Added_Link_To_Event.Designer.cs

File diff suppressed because it is too large

24
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208073446_Added_Link_To_Event.cs

@ -1,24 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_Link_To_Event : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Link",
table: "AppEvents",
type: "nvarchar(2000)",
maxLength: 2000,
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Link",
table: "AppEvents");
}
}
}

2534
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208140845_Added_Countries.Designer.cs

File diff suppressed because it is too large

64
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208140845_Added_Countries.cs

@ -1,64 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_Countries : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "CountryId",
table: "AppEvents",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.CreateTable(
name: "AppCountries",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AppCountries", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_AppEvents_CountryId",
table: "AppEvents",
column: "CountryId");
migrationBuilder.CreateIndex(
name: "IX_AppCountries_Name",
table: "AppCountries",
column: "Name");
migrationBuilder.AddForeignKey(
name: "FK_AppEvents_AppCountries_CountryId",
table: "AppEvents",
column: "CountryId",
principalTable: "AppCountries",
principalColumn: "Id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_AppEvents_AppCountries_CountryId",
table: "AppEvents");
migrationBuilder.DropTable(
name: "AppCountries");
migrationBuilder.DropIndex(
name: "IX_AppEvents_CountryId",
table: "AppEvents");
migrationBuilder.DropColumn(
name: "CountryId",
table: "AppEvents");
}
}
}

2538
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208141144_Added_City_To_Event.Designer.cs

File diff suppressed because it is too large

24
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210208141144_Added_City_To_Event.cs

@ -1,24 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_City_To_Event : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "City",
table: "AppEvents",
type: "nvarchar(32)",
maxLength: 32,
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "City",
table: "AppEvents");
}
}
}

2542
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209072715_Added_Language_To_Event.Designer.cs

File diff suppressed because it is too large

24
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209072715_Added_Language_To_Event.cs

@ -1,24 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_Language_To_Event : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Language",
table: "AppEvents",
type: "nvarchar(16)",
maxLength: 16,
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Language",
table: "AppEvents");
}
}
}

2542
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209081448_Renamed_Link_To_OnlineLink.Designer.cs

File diff suppressed because it is too large

23
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209081448_Renamed_Link_To_OnlineLink.cs

@ -1,23 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Renamed_Link_To_OnlineLink : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Link",
table: "AppEvents",
newName: "OnlineLink");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "OnlineLink",
table: "AppEvents",
newName: "Link");
}
}
}

2624
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209143744_Added_Blob_Database.Designer.cs

File diff suppressed because it is too large

73
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210209143744_Added_Blob_Database.cs

@ -1,73 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_Blob_Database : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AbpBlobContainers",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpBlobContainers", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpBlobs",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ContainerId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
Content = table.Column<byte[]>(type: "varbinary(max)", maxLength: 2147483647, nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpBlobs", x => x.Id);
table.ForeignKey(
name: "FK_AbpBlobs_AbpBlobContainers_ContainerId",
column: x => x.ContainerId,
principalTable: "AbpBlobContainers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_AbpBlobContainers_TenantId_Name",
table: "AbpBlobContainers",
columns: new[] { "TenantId", "Name" });
migrationBuilder.CreateIndex(
name: "IX_AbpBlobs_ContainerId",
table: "AbpBlobs",
column: "ContainerId");
migrationBuilder.CreateIndex(
name: "IX_AbpBlobs_TenantId_ContainerId_Name",
table: "AbpBlobs",
columns: new[] { "TenantId", "ContainerId", "Name" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AbpBlobs");
migrationBuilder.DropTable(
name: "AbpBlobContainers");
}
}
}

24
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210210110442_Added_TimingChangeCount_To_Event.cs

@ -1,24 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class Added_TimingChangeCount_To_Event : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "TimingChangeCount",
table: "AppEvents",
type: "int",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "TimingChangeCount",
table: "AppEvents");
}
}
}

2633
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210211115505_IsTimingChangeEmailSent_Added_To_EventRegistration.Designer.cs

File diff suppressed because it is too large

24
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210211115505_IsTimingChangeEmailSent_Added_To_EventRegistration.cs

@ -1,24 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EventHub.Migrations
{
public partial class IsTimingChangeEmailSent_Added_To_EventRegistration : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsTimingChangeEmailSent",
table: "AppEventRegistrations",
type: "bit",
nullable: false,
defaultValue: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsTimingChangeEmailSent",
table: "AppEventRegistrations");
}
}
}

5260
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210210110442_Added_TimingChangeCount_To_Event.Designer.cs → src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210307195605_Initial.Designer.cs

File diff suppressed because it is too large

356
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210116163835_Initial.cs → src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/20210307195605_Initial.cs

@ -61,38 +61,38 @@ namespace EventHub.Migrations
}); });
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "AbpClaimTypes", name: "AbpBlobContainers",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Required = table.Column<bool>(type: "bit", nullable: false), Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
IsStatic = table.Column<bool>(type: "bit", nullable: false),
Regex = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
RegexDescription = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
ValueType = table.Column<int>(type: "int", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); table.PrimaryKey("PK_AbpBlobContainers", x => x.Id);
}); });
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "AbpFeatureValues", name: "AbpClaimTypes",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
Value = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Required = table.Column<bool>(type: "bit", nullable: false),
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), IsStatic = table.Column<bool>(type: "bit", nullable: false),
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true) Regex = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
RegexDescription = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
ValueType = table.Column<int>(type: "int", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_AbpFeatureValues", x => x.Id); table.PrimaryKey("PK_AbpClaimTypes", x => x.Id);
}); });
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
@ -214,27 +214,6 @@ namespace EventHub.Migrations
table.PrimaryKey("PK_AbpSettings", x => x.Id); table.PrimaryKey("PK_AbpSettings", x => x.Id);
}); });
migrationBuilder.CreateTable(
name: "AbpTenants",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpTenants", x => x.Id);
});
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "AbpUsers", name: "AbpUsers",
columns: table => new columns: table => new
@ -272,6 +251,18 @@ namespace EventHub.Migrations
table.PrimaryKey("PK_AbpUsers", x => x.Id); table.PrimaryKey("PK_AbpUsers", x => x.Id);
}); });
migrationBuilder.CreateTable(
name: "EhCountries",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_EhCountries", x => x.Id);
});
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "IdentityServerApiResources", name: "IdentityServerApiResources",
columns: table => new columns: table => new
@ -507,6 +498,29 @@ namespace EventHub.Migrations
onDelete: ReferentialAction.Cascade); onDelete: ReferentialAction.Cascade);
}); });
migrationBuilder.CreateTable(
name: "AbpBlobs",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ContainerId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
Content = table.Column<byte[]>(type: "varbinary(max)", maxLength: 2147483647, nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpBlobs", x => x.Id);
table.ForeignKey(
name: "FK_AbpBlobs_AbpBlobContainers_ContainerId",
column: x => x.ContainerId,
principalTable: "AbpBlobContainers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "AbpOrganizationUnitRoles", name: "AbpOrganizationUnitRoles",
columns: table => new columns: table => new
@ -555,25 +569,6 @@ namespace EventHub.Migrations
onDelete: ReferentialAction.Cascade); onDelete: ReferentialAction.Cascade);
}); });
migrationBuilder.CreateTable(
name: "AbpTenantConnectionStrings",
columns: table => new
{
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
Value = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name });
table.ForeignKey(
name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId",
column: x => x.TenantId,
principalTable: "AbpTenants",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "AbpUserClaims", name: "AbpUserClaims",
columns: table => new columns: table => new
@ -689,6 +684,41 @@ namespace EventHub.Migrations
onDelete: ReferentialAction.Cascade); onDelete: ReferentialAction.Cascade);
}); });
migrationBuilder.CreateTable(
name: "EhOrganizations",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
OwnerUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false),
DisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
Website = table.Column<string>(type: "nvarchar(max)", nullable: true),
TwitterUsername = table.Column<string>(type: "nvarchar(max)", nullable: true),
GitHubUsername = table.Column<string>(type: "nvarchar(max)", nullable: true),
FacebookUsername = table.Column<string>(type: "nvarchar(max)", nullable: true),
InstagramUsername = table.Column<string>(type: "nvarchar(max)", nullable: true),
MediumUsername = table.Column<string>(type: "nvarchar(max)", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EhOrganizations", x => x.Id);
table.ForeignKey(
name: "FK_EhOrganizations_AbpUsers_OwnerUserId",
column: x => x.OwnerUserId,
principalTable: "AbpUsers",
principalColumn: "Id");
});
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "IdentityServerApiResourceClaims", name: "IdentityServerApiResourceClaims",
columns: table => new columns: table => new
@ -1029,6 +1059,107 @@ namespace EventHub.Migrations
onDelete: ReferentialAction.Cascade); onDelete: ReferentialAction.Cascade);
}); });
migrationBuilder.CreateTable(
name: "EhEvents",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
OrganizationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
UrlCode = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: false),
Url = table.Column<string>(type: "nvarchar(69)", maxLength: 69, nullable: false),
Title = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
StartTime = table.Column<DateTime>(type: "datetime2", nullable: false),
EndTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Description = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false),
IsOnline = table.Column<bool>(type: "bit", nullable: false),
OnlineLink = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
CountryId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
City = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: true),
Language = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true),
Capacity = table.Column<int>(type: "int", nullable: true),
IsRemindingEmailSent = table.Column<bool>(type: "bit", nullable: false),
IsEmailSentToMembers = table.Column<bool>(type: "bit", nullable: false),
TimingChangeCount = table.Column<int>(type: "int", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EhEvents", x => x.Id);
table.ForeignKey(
name: "FK_EhEvents_EhCountries_CountryId",
column: x => x.CountryId,
principalTable: "EhCountries",
principalColumn: "Id");
table.ForeignKey(
name: "FK_EhEvents_EhOrganizations_OrganizationId",
column: x => x.OrganizationId,
principalTable: "EhOrganizations",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "EhOrganizationMemberships",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
OrganizationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EhOrganizationMemberships", x => x.Id);
table.ForeignKey(
name: "FK_EhOrganizationMemberships_AbpUsers_UserId",
column: x => x.UserId,
principalTable: "AbpUsers",
principalColumn: "Id");
table.ForeignKey(
name: "FK_EhOrganizationMemberships_EhOrganizations_OrganizationId",
column: x => x.OrganizationId,
principalTable: "EhOrganizations",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "EhEventRegistrations",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
EventId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
IsTimingChangeEmailSent = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EhEventRegistrations", x => x.Id);
table.ForeignKey(
name: "FK_EhEventRegistrations_AbpUsers_UserId",
column: x => x.UserId,
principalTable: "AbpUsers",
principalColumn: "Id");
table.ForeignKey(
name: "FK_EhEventRegistrations_EhEvents_EventId",
column: x => x.EventId,
principalTable: "EhEvents",
principalColumn: "Id");
});
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_AbpAuditLogActions_AuditLogId", name: "IX_AbpAuditLogActions_AuditLogId",
table: "AbpAuditLogActions", table: "AbpAuditLogActions",
@ -1054,6 +1185,21 @@ namespace EventHub.Migrations
table: "AbpBackgroundJobs", table: "AbpBackgroundJobs",
columns: new[] { "IsAbandoned", "NextTryTime" }); columns: new[] { "IsAbandoned", "NextTryTime" });
migrationBuilder.CreateIndex(
name: "IX_AbpBlobContainers_TenantId_Name",
table: "AbpBlobContainers",
columns: new[] { "TenantId", "Name" });
migrationBuilder.CreateIndex(
name: "IX_AbpBlobs_ContainerId",
table: "AbpBlobs",
column: "ContainerId");
migrationBuilder.CreateIndex(
name: "IX_AbpBlobs_TenantId_ContainerId_Name",
table: "AbpBlobs",
columns: new[] { "TenantId", "ContainerId", "Name" });
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_AbpEntityChanges_AuditLogId", name: "IX_AbpEntityChanges_AuditLogId",
table: "AbpEntityChanges", table: "AbpEntityChanges",
@ -1069,11 +1215,6 @@ namespace EventHub.Migrations
table: "AbpEntityPropertyChanges", table: "AbpEntityPropertyChanges",
column: "EntityChangeId"); column: "EntityChangeId");
migrationBuilder.CreateIndex(
name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey",
table: "AbpFeatureValues",
columns: new[] { "Name", "ProviderName", "ProviderKey" });
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId", name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId",
table: "AbpLinkUsers", table: "AbpLinkUsers",
@ -1136,11 +1277,6 @@ namespace EventHub.Migrations
table: "AbpSettings", table: "AbpSettings",
columns: new[] { "Name", "ProviderName", "ProviderKey" }); columns: new[] { "Name", "ProviderName", "ProviderKey" });
migrationBuilder.CreateIndex(
name: "IX_AbpTenants_Name",
table: "AbpTenants",
column: "Name");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_AbpUserClaims_UserId", name: "IX_AbpUserClaims_UserId",
table: "AbpUserClaims", table: "AbpUserClaims",
@ -1181,6 +1317,66 @@ namespace EventHub.Migrations
table: "AbpUsers", table: "AbpUsers",
column: "UserName"); column: "UserName");
migrationBuilder.CreateIndex(
name: "IX_EhCountries_Name",
table: "EhCountries",
column: "Name");
migrationBuilder.CreateIndex(
name: "IX_EhEventRegistrations_EventId_UserId",
table: "EhEventRegistrations",
columns: new[] { "EventId", "UserId" });
migrationBuilder.CreateIndex(
name: "IX_EhEventRegistrations_UserId",
table: "EhEventRegistrations",
column: "UserId");
migrationBuilder.CreateIndex(
name: "IX_EhEvents_CountryId",
table: "EhEvents",
column: "CountryId");
migrationBuilder.CreateIndex(
name: "IX_EhEvents_OrganizationId_StartTime",
table: "EhEvents",
columns: new[] { "OrganizationId", "StartTime" });
migrationBuilder.CreateIndex(
name: "IX_EhEvents_StartTime",
table: "EhEvents",
column: "StartTime");
migrationBuilder.CreateIndex(
name: "IX_EhEvents_UrlCode",
table: "EhEvents",
column: "UrlCode");
migrationBuilder.CreateIndex(
name: "IX_EhOrganizationMemberships_OrganizationId_UserId",
table: "EhOrganizationMemberships",
columns: new[] { "OrganizationId", "UserId" });
migrationBuilder.CreateIndex(
name: "IX_EhOrganizationMemberships_UserId",
table: "EhOrganizationMemberships",
column: "UserId");
migrationBuilder.CreateIndex(
name: "IX_EhOrganizations_DisplayName",
table: "EhOrganizations",
column: "DisplayName");
migrationBuilder.CreateIndex(
name: "IX_EhOrganizations_Name",
table: "EhOrganizations",
column: "Name");
migrationBuilder.CreateIndex(
name: "IX_EhOrganizations_OwnerUserId",
table: "EhOrganizations",
column: "OwnerUserId");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_IdentityServerClients_ClientId", name: "IX_IdentityServerClients_ClientId",
table: "IdentityServerClients", table: "IdentityServerClients",
@ -1227,13 +1423,13 @@ namespace EventHub.Migrations
name: "AbpBackgroundJobs"); name: "AbpBackgroundJobs");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpClaimTypes"); name: "AbpBlobs");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpEntityPropertyChanges"); name: "AbpClaimTypes");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpFeatureValues"); name: "AbpEntityPropertyChanges");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpLinkUsers"); name: "AbpLinkUsers");
@ -1253,9 +1449,6 @@ namespace EventHub.Migrations
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpSettings"); name: "AbpSettings");
migrationBuilder.DropTable(
name: "AbpTenantConnectionStrings");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpUserClaims"); name: "AbpUserClaims");
@ -1271,6 +1464,12 @@ namespace EventHub.Migrations
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpUserTokens"); name: "AbpUserTokens");
migrationBuilder.DropTable(
name: "EhEventRegistrations");
migrationBuilder.DropTable(
name: "EhOrganizationMemberships");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "IdentityServerApiResourceClaims"); name: "IdentityServerApiResourceClaims");
@ -1329,10 +1528,10 @@ namespace EventHub.Migrations
name: "IdentityServerPersistedGrants"); name: "IdentityServerPersistedGrants");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpEntityChanges"); name: "AbpBlobContainers");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpTenants"); name: "AbpEntityChanges");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpOrganizationUnits"); name: "AbpOrganizationUnits");
@ -1341,7 +1540,7 @@ namespace EventHub.Migrations
name: "AbpRoles"); name: "AbpRoles");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpUsers"); name: "EhEvents");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "IdentityServerApiResources"); name: "IdentityServerApiResources");
@ -1357,6 +1556,15 @@ namespace EventHub.Migrations
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "AbpAuditLogs"); name: "AbpAuditLogs");
migrationBuilder.DropTable(
name: "EhCountries");
migrationBuilder.DropTable(
name: "EhOrganizations");
migrationBuilder.DropTable(
name: "AbpUsers");
} }
} }
} }

14
src/EventHub.EntityFrameworkCore.DbMigrations/Migrations/EventHubMigrationsDbContextModelSnapshot.cs

@ -29,14 +29,14 @@ namespace EventHub.Migrations
b.Property<string>("Name") b.Property<string>("Name")
.IsRequired() .IsRequired()
.HasMaxLength(32) .HasMaxLength(64)
.HasColumnType("nvarchar(32)"); .HasColumnType("nvarchar(64)");
b.HasKey("Id"); b.HasKey("Id");
b.HasIndex("Name"); b.HasIndex("Name");
b.ToTable("AppCountries"); b.ToTable("EhCountries");
}); });
modelBuilder.Entity("EventHub.Events.Event", b => modelBuilder.Entity("EventHub.Events.Event", b =>
@ -154,7 +154,7 @@ namespace EventHub.Migrations
b.HasIndex("OrganizationId", "StartTime"); b.HasIndex("OrganizationId", "StartTime");
b.ToTable("AppEvents"); b.ToTable("EhEvents");
}); });
modelBuilder.Entity("EventHub.Events.Registrations.EventRegistration", b => modelBuilder.Entity("EventHub.Events.Registrations.EventRegistration", b =>
@ -199,7 +199,7 @@ namespace EventHub.Migrations
b.HasIndex("EventId", "UserId"); b.HasIndex("EventId", "UserId");
b.ToTable("AppEventRegistrations"); b.ToTable("EhEventRegistrations");
}); });
modelBuilder.Entity("EventHub.Organizations.Memberships.OrganizationMembership", b => modelBuilder.Entity("EventHub.Organizations.Memberships.OrganizationMembership", b =>
@ -238,7 +238,7 @@ namespace EventHub.Migrations
b.HasIndex("OrganizationId", "UserId"); b.HasIndex("OrganizationId", "UserId");
b.ToTable("AppOrganizationMemberships"); b.ToTable("EhOrganizationMemberships");
}); });
modelBuilder.Entity("EventHub.Organizations.Organization", b => modelBuilder.Entity("EventHub.Organizations.Organization", b =>
@ -331,7 +331,7 @@ namespace EventHub.Migrations
b.HasIndex("OwnerUserId"); b.HasIndex("OwnerUserId");
b.ToTable("AppOrganizations"); b.ToTable("EhOrganizations");
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>

Loading…
Cancel
Save