This project is read-only.

For the fork stanleygoldman, missing update in migration.cs


using System;
using Orchard.Data.Migration;

namespace Contrib.GoogleAnalytics {
public class Migrations : DataMigrationImpl
    public int Create()
            table => table
                .Column<int>("Id", column => column.PrimaryKey().Identity())
                .Column<bool>("Enable", column => column.NotNull().WithDefault(false))
                .Column<bool>("IncludeInHead", column => column.NotNull().WithDefault(false))
                .Column<string>("Script", column => column.NotNull().Unlimited().WithDefault(""))

        return 1;

    public int UpdateFrom1()
            table => table
                .AddColumn<bool>("IncludeInHead", column => column.NotNull().WithDefault(false))
        return 2;


StanleyGoldman wrote Apr 27, 2013 at 7:17 PM

It seems to be that bgrabkowitz made a mistake when adding his change to my fork, if you look in the code you posted, the initial migration was modified to add the column.

I gave you access to my fork, if you'd like to push the fix into it.

CSADNT wrote Apr 28, 2013 at 8:23 AM

Ok, I will be glad to help ... positively :)