namespace Weee.Migrations { using System; using System.Data.Entity.Migrations; public partial class MaterailAddColumns : DbMigration { public override void Up() { AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "Level", c => c.String()); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "Source", c => c.String()); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "Components", c => c.String()); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "MaterailType", c => c.String()); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "Quantity_BOM", c => c.Decimal(nullable: false, precision: 24, scale: 12)); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "Length", c => c.Decimal(nullable: false, precision: 24, scale: 12)); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "Weight_mg", c => c.Decimal(nullable: false, precision: 24, scale: 12)); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "ActivityIntensity", c => c.Decimal(nullable: false, precision: 24, scale: 12)); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "Depiction", c => c.String()); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "ParameterValue", c => c.Decimal(nullable: false, precision: 24, scale: 12)); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "ParameterDescription", c => c.String()); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "ParameterSource", c => c.Int(nullable: false)); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "CalculationWay", c => c.Int(nullable: false)); AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "SupplierCompanyType", c => c.String()); } public override void Down() { DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "SupplierCompanyType"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "CalculationWay"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "ParameterSource"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "ParameterDescription"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "ParameterValue"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "Depiction"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "ActivityIntensity"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "Weight_mg"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "Length"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "Quantity_BOM"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "MaterailType"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "Components"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "Source"); DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "Level"); } } }