mirror of https://github.com/abpframework/eventhub
15 changed files with 3001 additions and 50 deletions
File diff suppressed because it is too large
@ -0,0 +1,104 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace EventHub.Migrations |
|||
{ |
|||
public partial class Removed_Unnecessary_Index : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_EhEventSpeakers_UserId_SessionId", |
|||
table: "EhEventSpeakers"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_AbpSettings_Name_ProviderName_ProviderKey", |
|||
table: "AbpSettings"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_AbpPermissionGrants_Name_ProviderName_ProviderKey", |
|||
table: "AbpPermissionGrants"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "StartTime", |
|||
table: "EhEventSessions", |
|||
type: "timestamp with time zone", |
|||
nullable: false, |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "EndTime", |
|||
table: "EhEventSessions", |
|||
type: "timestamp with time zone", |
|||
nullable: false, |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EhEventSpeakers_UserId", |
|||
table: "EhEventSpeakers", |
|||
column: "UserId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpSettings_Name_ProviderName_ProviderKey", |
|||
table: "AbpSettings", |
|||
columns: new[] { "Name", "ProviderName", "ProviderKey" }, |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpPermissionGrants_TenantId_Name_ProviderName_ProviderKey", |
|||
table: "AbpPermissionGrants", |
|||
columns: new[] { "TenantId", "Name", "ProviderName", "ProviderKey" }, |
|||
unique: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_EhEventSpeakers_UserId", |
|||
table: "EhEventSpeakers"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_AbpSettings_Name_ProviderName_ProviderKey", |
|||
table: "AbpSettings"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_AbpPermissionGrants_TenantId_Name_ProviderName_ProviderKey", |
|||
table: "AbpPermissionGrants"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "StartTime", |
|||
table: "EhEventSessions", |
|||
type: "timestamp without time zone", |
|||
nullable: false, |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp with time zone"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "EndTime", |
|||
table: "EhEventSessions", |
|||
type: "timestamp without time zone", |
|||
nullable: false, |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp with time zone"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EhEventSpeakers_UserId_SessionId", |
|||
table: "EhEventSpeakers", |
|||
columns: new[] { "UserId", "SessionId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpSettings_Name_ProviderName_ProviderKey", |
|||
table: "AbpSettings", |
|||
columns: new[] { "Name", "ProviderName", "ProviderKey" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpPermissionGrants_Name_ProviderName_ProviderKey", |
|||
table: "AbpPermissionGrants", |
|||
columns: new[] { "Name", "ProviderName", "ProviderKey" }); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue