summaryrefslogtreecommitdiff
path: root/Project-Unite/Migrations/201703172359467_banning.cs
blob: 68ee6885b5649615420ba1ecd5fdbe0c23a9edcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
namespace Project_Unite.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class banning : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.BannedIPs",
                c => new
                    {
                        Id = c.String(nullable: false, maxLength: 128),
                        Address = c.String(),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.BannedIPs");
        }
    }
}