﻿using FluentMigrator;

namespace FirstServiceMaybe.Migrations
{
    [Migration(201607271433)]
    public class Migration201607271433_CreateSampleTable : Migration
    {
        public override void Up()
        {
            Create.Table("Sample")
                .WithColumn("SampleId").AsInt32().NotNullable().PrimaryKey().Identity()
                .WithColumn("SampleDate").AsDateTimeOffset().NotNullable()
                .WithColumn("SampleValue").AsString(255).NotNullable();
        }

        public override void Down()
        {
            Delete.Table("Samples");
        }
    }
}