1

I'm hoping to rename an existing custom content type in one of my Orchard modules. Is it possible to do this in a migration?

bingles
  • 11,582
  • 10
  • 82
  • 93

1 Answers1

1

Yes, but not by using ContentDefinitionManager. The simplest way would be to execute an SQL update query against Settings_ContentTypeDefinitionRecord table using SchemaBuilder.ExecuteSql.

Piotr Szmyd
  • 13,371
  • 6
  • 44
  • 61
  • Thank you. I'll have to try this. Do you know offhand if there are any other places in the database that will need to be renamed? For example, is the default content part created for the type something that has to be renamed somehow? – bingles Jan 21 '15 at 04:02