Skip to content

Instantly share code, notes, and snippets.

@chaliy
Created March 10, 2010 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaliy/327962 to your computer and use it in GitHub Desktop.
Save chaliy/327962 to your computer and use it in GitHub Desktop.
let versions = new Table(db, "__MoveVersions")
(** first version **)
versions.Columns.Add(new Column(versions, "Sequence", DataType.NVarChar(450)))
versions.Columns.Add(new Column(versions, "Version", DataType.NVarChar(450)))
versions.Columns.Add(new Column(versions, "PreviousVersion", DataType.NVarChar(450)))
versions.Columns.Add(new Column(versions, "LastUpdated", DataType.DateTime))
(** or second version **)
[ "Sequence", DataType.NVarChar(450)
"Version", DataType.NVarChar(450)
"PreviousVersion", DataType.NVarChar(450)
"LastUpdated", DataType.DateTime ]
|> List.iter(fun (n, t) -> versions.Columns.Add(new Column(versions, n, t)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment