From cdc61eb4ea5309769ad4db84d92594e4dc3dff67 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Mar 2017 16:45:17 -0400 Subject: Initial commit (azure deploy test) --- .../Migrations/201703161328360_more-acl-stuff.cs | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Project-Unite/Migrations/201703161328360_more-acl-stuff.cs (limited to 'Project-Unite/Migrations/201703161328360_more-acl-stuff.cs') diff --git a/Project-Unite/Migrations/201703161328360_more-acl-stuff.cs b/Project-Unite/Migrations/201703161328360_more-acl-stuff.cs new file mode 100644 index 0000000..51b335d --- /dev/null +++ b/Project-Unite/Migrations/201703161328360_more-acl-stuff.cs @@ -0,0 +1,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"); + } + } +} -- cgit v1.2.3