This project is read-only.

how can i change the column value

Topics: Core, Customizing Orchard, General
Jun 13, 2012 at 11:09 PM
Edited Jun 13, 2012 at 11:10 PM
i created a new module called  Guang.CenterCs (new namespace) to change,
this is the code :
   public int UpdateFrom2()
 SchemaBuilder.AlterTable("RegistrationSettingsPartRecord", table => table                  .AlterColumn("UsersCanRegister", c => c.WithDefault(true))                               );             SchemaBuilder.AlterTable("RegistrationSettingsPartRecord", table => table                                .AlterColumn("EnableLostPassword", c => c.WithDefault(true))
         return 3;

got this error

"The specified table does not exist. [ Guang_CenterCs_RegistrationSettingsPartRecord ]"}


if i can not change that in a new module, how is the  SchemaBuilder.AlterTable useful?

Jun 14, 2012 at 6:54 AM

A module can only alter its own tables from a migration.