Beispiel #1
0
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            //Update JobLog table
            var jobLogEntityBuilder = new JobLogEntityBuilder(migrationBuilder, ActiveDatabase);

            jobLogEntityBuilder.DropIndex("IX_JobLog_JobId");

            //Update Alias table
            var aliasEntityBuilder = new AliasEntityBuilder(migrationBuilder, ActiveDatabase);

            aliasEntityBuilder.DropIndex("IX_Alias_TenantId");
        }
Beispiel #2
0
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            //Update Tenant table
            var tenantEntityBuilder = new TenantEntityBuilder(migrationBuilder, ActiveDatabase);

            tenantEntityBuilder.DropIndex("IX_Tenant");

            //Update Alias table
            var aliasEntityBuilder = new AliasEntityBuilder(migrationBuilder, ActiveDatabase);

            aliasEntityBuilder.DropIndex("IX_Alias");

            //Update ModuleDefinitions Table
            var moduleDefinitionsEntityBuilder = new ModuleDefinitionsEntityBuilder(migrationBuilder, ActiveDatabase);

            moduleDefinitionsEntityBuilder.DropIndex("IX_ModuleDefinition");

            //Update Job Table
            var jobEntityBuilder = new JobEntityBuilder(migrationBuilder, ActiveDatabase);

            jobEntityBuilder.DropIndex("IX_Job");
        }