summaryrefslogtreecommitdiff
path: root/Project-Unite/Migrations/201703181331309_acl_revamps.cs
blob: 222c28864c8b1fbd727502d99b4a2f7b0455b151 (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
27
28
29
30
namespace Project_Unite.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class acl_revamps : DbMigration
    {
        public override void Up()
        {
            DropTable("dbo.ACLForumPermissions");
        }
        
        public override void Down()
        {
            CreateTable(
                "dbo.ACLForumPermissions",
                c => new
                    {
                        Id = c.String(nullable: false, maxLength: 128),
                        CategoryId = c.String(),
                        RoleId = c.String(),
                        CanSee = c.Boolean(nullable: false),
                        CanReply = c.Boolean(nullable: false),
                        CanPost = c.Boolean(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
        }
    }
}