namespace WebPortal.Migrations
{
    using System.Data.Entity.Migrations;
    
    public partial class Version05 : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                    "dbo.CONFGeneralSettings",
                    c => new
                    {
                       ID = c.Int(nullable: false, identity: true),
                       ParamName = c.String(maxLength: 100),
                       ParamValue = c.String(maxLength: 100),
                       Note = c.String(maxLength: 100),
                       TCInsertTime = c.DateTime(),
                       TCLastUpdate = c.DateTime(),
                       TCActive = c.Int(),
                    })
                .PrimaryKey(t => t.ID);
            AlterColumn("dbo.CONFGeneralSettings", "TCInsertTime", c => c.DateTime(nullable: true, defaultValueSql: "GETDATE()"));
            AlterColumn("dbo.CONFGeneralSettings", "TCLastUpdate", c => c.DateTime(nullable: true, defaultValueSql: "GETDATE()"));
            AlterColumn("dbo.CONFGeneralSettings", "TCActive", c => c.Int(nullable: true, defaultValue: 0));
        }
        
        public override void Down()
        {
          DropTable("dbo.CONFGeneralSettings"); 
        }
    }
}
