Update and enable module

Topics: Customizing Orchard
Jan 3, 2012 at 4:16 PM

Hi,

 

I have created module and when i goto update and enable module there is another extra contnet type called  "Name" why that,

 

Here is my migration file

 public int Create() {
			// Creating table orch_eProp_Jobs_JobPartRecord
			SchemaBuilder.CreateTable("JobPartRecord", table => table
				.ContentPartRecord()
                .Column("CompanyId", DbType.Int16 )
                .Column("Salary", DbType.String )
                .Column("Location", DbType.String )
                .Column("PostedBy", DbType.Int32)
                .Column("Telephone", DbType.String)
                .Column("Fax", DbType.Boolean)
                .Column("Email", DbType.String)
                .Column("Vacancy", DbType.Boolean )
				
			);


            ContentDefinitionManager.AlterPartDefinition("JobPart",
             builder => builder.Attachable());

            return 1;
        }

        public int UpdateFrom1()
        {
            ContentDefinitionManager.AlterTypeDefinition("Job",
            cfg => cfg
                .WithPart("RoutePart")
                .WithPart("BodyPart")
                .WithPart("JobPart")
                .WithPart("PublishLaterPart")
                .WithPart("UserViewPart")

            );
            return 2;
        }

Coordinator
Jan 6, 2012 at 6:44 AM

Where is there an extra content type called name? Are you sure it happened as a result of that migration?