bingles
bingles

Reputation: 12223

Orchard Rename Content Type in Migration

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?

Upvotes: 1

Views: 181

Answers (1)

Piotr Szmyd
Piotr Szmyd

Reputation: 13366

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

Upvotes: 1

Related Questions