Source

TrafficLight / src / Core / Data / Migrations / IndicatorsTable.cs

Full commit
using System.Data;
using Migrator.Framework;

namespace RossCode.TrafficLight.Core.Data.Migrations
{
    [Migration(201210282154)]
    public class IndicatorsTable_201210282154 : Migration
    {
        public override void Up()
        {
            Database.AddTable("Indicators", new Column("Id", DbType.Int32, ColumnProperty.PrimaryKey));
            Database.ExecuteNonQuery("insert into Indicators (Id) values (1);");
        }

        public override void Down()
        {
            Database.RemoveTable("Indicators");
        }
    }
}