Commits

Joel Ross committed 84ed913

Added putting the Traffic Light TeamCity project as a default project

  • Participants
  • Parent commits af97d88

Comments (0)

Files changed (1)

src/Core/Data/Migrations/ProjectsTable.cs

-using System.Data;
+using System;
+using System.Data;
 using Migrator.Framework;
 
 namespace RossCode.TrafficLight.Core.Data.Migrations
             Database.RemoveColumn("Projects", "ServerType");
         }
     }
+
+    [Migration(201210252139)]
+    public class ProjectsTable_201210252139 : Migration
+    {
+        public override void Up()
+        {
+            if (Convert.ToInt32(Database.ExecuteScalar("select count(Id) from Projects")) == 0)
+            {
+                Database.ExecuteNonQuery("insert into Projects (Name, Url, Username, Password, ServerType) values ('Traffic Light :: Traffic Light Trunk', 'http://teamcity.codebetter.com/guestAuth/app/rest/cctray/projects.xml', '', '', 1)");
+            }
+        }
+
+        public override void Down()
+        {
+
+        }
+    }
 }