blob: 51b335d3ffcaa77b12721d6b2d20ac7d7663c55c (
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
31
32
33
34
|
namespace Project_Unite.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class moreaclstuff : DbMigration
{
public override void Up()
{
CreateTable(
"dbo.ACLForumPermissions",
c => new
{
Id = c.String(nullable: false, maxLength: 128),
RoleId = c.String(),
CanSee = c.Boolean(nullable: false),
CanReply = c.Boolean(nullable: false),
CanPost = c.Boolean(nullable: false),
ForumCategory_Id = c.String(maxLength: 128),
})
.PrimaryKey(t => t.Id)
.ForeignKey("dbo.ForumCategories", t => t.ForumCategory_Id)
.Index(t => t.ForumCategory_Id);
}
public override void Down()
{
DropForeignKey("dbo.ACLForumPermissions", "ForumCategory_Id", "dbo.ForumCategories");
DropIndex("dbo.ACLForumPermissions", new[] { "ForumCategory_Id" });
DropTable("dbo.ACLForumPermissions");
}
}
}
|