summaryrefslogtreecommitdiff
path: root/Project-Unite/Migrations/201703162001254_jonny___.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-20 16:45:17 -0400
committerMichael <[email protected]>2017-03-20 16:45:17 -0400
commitcdc61eb4ea5309769ad4db84d92594e4dc3dff67 (patch)
treea8297a7aecc4376f07a497a5e02ab5ff165bfbd3 /Project-Unite/Migrations/201703162001254_jonny___.cs
parentd9f475e1f33bbf39ca0d79d7a6b0c2fd501b4f2d (diff)
downloadproject-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.gz
project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.bz2
project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.zip
Initial commit (azure deploy test)
Diffstat (limited to 'Project-Unite/Migrations/201703162001254_jonny___.cs')
-rw-r--r--Project-Unite/Migrations/201703162001254_jonny___.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Project-Unite/Migrations/201703162001254_jonny___.cs b/Project-Unite/Migrations/201703162001254_jonny___.cs
new file mode 100644
index 0000000..910eae9
--- /dev/null
+++ b/Project-Unite/Migrations/201703162001254_jonny___.cs
@@ -0,0 +1,33 @@
+namespace Project_Unite.Migrations
+{
+ using System;
+ using System.Data.Entity.Migrations;
+
+ public partial class jonny___ : DbMigration
+ {
+ public override void Up()
+ {
+ }
+
+ public override void Down()
+ {
+ AddColumn("dbo.ForumTopics", "Parent_Parent", c => c.String(nullable: false, maxLength: 128));
+ AddColumn("dbo.ACLForumPermissions", "Parent_Parent", c => c.String(nullable: false, maxLength: 128));
+ AddColumn("dbo.ForumCategories", "ForumCategory_Parent", c => c.String(maxLength: 128));
+ AddColumn("dbo.ForumCategories", "ForumCategory_Id", c => c.String(maxLength: 128));
+ DropForeignKey("dbo.ForumTopics", "Parent_Id", "dbo.ForumCategories");
+ DropForeignKey("dbo.ACLForumPermissions", "Parent_Id", "dbo.ForumCategories");
+ DropIndex("dbo.ForumTopics", new[] { "Parent_Id" });
+ DropIndex("dbo.ACLForumPermissions", new[] { "Parent_Id" });
+ DropPrimaryKey("dbo.ForumCategories");
+ AlterColumn("dbo.ForumCategories", "Parent", c => c.String(nullable: false, maxLength: 128));
+ AddPrimaryKey("dbo.ForumCategories", new[] { "Id", "Parent" });
+ CreateIndex("dbo.ForumTopics", new[] { "Parent_Id", "Parent_Parent" });
+ CreateIndex("dbo.ACLForumPermissions", new[] { "Parent_Id", "Parent_Parent" });
+ CreateIndex("dbo.ForumCategories", new[] { "ForumCategory_Id", "ForumCategory_Parent" });
+ AddForeignKey("dbo.ForumTopics", new[] { "Parent_Id", "Parent_Parent" }, "dbo.ForumCategories", new[] { "Id", "Parent" }, cascadeDelete: true);
+ AddForeignKey("dbo.ACLForumPermissions", new[] { "Parent_Id", "Parent_Parent" }, "dbo.ForumCategories", new[] { "Id", "Parent" }, cascadeDelete: true);
+ AddForeignKey("dbo.ForumCategories", new[] { "ForumCategory_Id", "ForumCategory_Parent" }, "dbo.ForumCategories", new[] { "Id", "Parent" });
+ }
+ }
+}