Advertisement
Guest User

Untitled

a guest
Apr 4th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 1.04 KB | None | 0 0
  1. namespace BirdDogSoftware.Core.Persistance
  2.  
  3. module MigrationList =
  4.     open BirdDogSoftware.Core.Persistance.Migration
  5.  
  6.     let list = [
  7.         {
  8.             Name = "ProjectManagement"
  9.             Up = fun(m) ->
  10.                 m.Create.Table("BDProjects2")
  11.                     .WithColumn("ID").AsGuid()
  12.                     .WithColumn("ID").AsGuid()
  13.                     .WithColumn("ShortID").AsInt64()
  14.                     .WithColumn("Name").AsString()
  15.                     .WithColumn("Status").AsInt32()
  16.                     .WithColumn("ContactID").AsGuid()
  17.                     .WithColumn("DateCreated").AsDate()
  18.                     .WithColumn("DueDate").AsDate()
  19.                     .WithColumn("Priority").AsString()
  20.                     .WithColumn("CompletionDate").AsDate()
  21.                     .WithColumn("Notes").AsString()
  22.                     .WithColumn("ParentProjectID").AsGuid()
  23.                 |> ignore
  24.             Down = fun(m) ->
  25.                 m.Delete.Table("BDProjects2")
  26.                 |> ignore
  27.         }
  28.     ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement