Created
October 2, 2018 21:39
-
-
Save tcavaletto/e4ea90bfb644e460b7f604c967405d9b to your computer and use it in GitHub Desktop.
Custom Report Migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data.Entity; | |
using System.Linq; | |
using Rock; | |
using Rock.Data; | |
using Rock.Model; | |
using Rock.Plugin; | |
namespace org.RockSolidChurch.CustomReportTemplate.Migrations | |
{ | |
[MigrationNumber( 1, "1.8.0" )] | |
public class RockSolidChurchReport : Migration | |
{ | |
public override void Up() | |
{ | |
// Report Template | |
RockMigrationHelper.UpdateEntityType( "org.RockSolidChurch.CustomReportTemplate.ReportTemplates.RockSolidChurchTemplate", "Rock Solid Church Report Template", "org.RockSolidChurch.CustomReportTemplate.ReportTemplates.RockSolidChurchTemplate, org.RockSolidChurch.CustomReportTemplate, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null", false, true, "26984945-32eb-4f15-809b-725fbcd1ee41" ); | |
RockMigrationHelper.AddEntityAttribute( "org.RockSolidChurch.CustomReportTemplate.ReportTemplates.RockSolidChurchTemplate", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "", "", "Active", "", "Should Service be used?", 0, "True", "5a1ac744-4044-4019-82f8-33e2163bb4d3" ); | |
RockMigrationHelper.AddAttributeValue( "5a1ac744-4044-4019-82f8-33e2163bb4d3", 0, "True", "067330d4-8a7c-4f8f-bea0-ab0091b71034" ); | |
} | |
public override void Down() | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment