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/201703161941448_help_me.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Project-Unite/Migrations/201703161941448_help_me.cs (limited to 'Project-Unite/Migrations/201703161941448_help_me.cs') diff --git a/Project-Unite/Migrations/201703161941448_help_me.cs b/Project-Unite/Migrations/201703161941448_help_me.cs new file mode 100644 index 0000000..ba387cd --- /dev/null +++ b/Project-Unite/Migrations/201703161941448_help_me.cs @@ -0,0 +1,22 @@ +namespace Project_Unite.Migrations +{ + using System; + using System.Data.Entity.Migrations; + + public partial class help_me : DbMigration + { + public override void Up() + { + RenameColumn(table: "dbo.ForumCategories", name: "Parent_Id", newName: "ForumCategory_Id"); + RenameIndex(table: "dbo.ForumCategories", name: "IX_Parent_Id", newName: "IX_ForumCategory_Id"); + AddColumn("dbo.ForumCategories", "Parent", c => c.String()); + } + + public override void Down() + { + DropColumn("dbo.ForumCategories", "Parent"); + RenameIndex(table: "dbo.ForumCategories", name: "IX_ForumCategory_Id", newName: "IX_Parent_Id"); + RenameColumn(table: "dbo.ForumCategories", name: "ForumCategory_Id", newName: "Parent_Id"); + } + } +} -- cgit v1.2.3