public override void Up() { AddColumn("dbo.Books", "Count", c => c.Int(nullable: false)); Sql("UPDATE Books SET Count = 0 WHERE Count IS NULL"); }