blob: 408ae2abf8fabd5337cdaafb57d46a796598d3c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
namespace Project_Unite.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class aclrevamps : DbMigration
{
public override void Up()
{
AddColumn("dbo.ACLForumPermissions", "CategoryId", c => c.String());
}
public override void Down()
{
AddColumn("dbo.ACLForumPermissions", "Parent_Id", c => c.String(nullable: false, maxLength: 128));
DropColumn("dbo.ACLForumPermissions", "CategoryId");
CreateIndex("dbo.ACLForumPermissions", "Parent_Id");
AddForeignKey("dbo.ACLForumPermissions", "Parent_Id", "dbo.ForumCategories", "Id", cascadeDelete: true);
}
}
}
|