Browse files

fix xpath for masterconf

  • Loading branch information...
1 parent f25b095 commit c26a5b63e3652e704154c715970b4e29edb29bf9 @ssandler ssandler committed Feb 25, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 scripts/Initialize-DB.ps1
View
7 scripts/Initialize-DB.ps1
@@ -616,9 +616,12 @@ foreach ($tableconf in $tables.SelectNodes("table")) {
#get XML for master config so that we can get any custom column modifiers/column lists
[xml]$masterconf = ($mastertableconf.SelectNodes("table") | ? {$_.name -eq $tableconf.name -and $_.schemaname -eq $tableconf.schemaname}).OuterXML
#parse column modifiers and column lists for master and slave version of this table
- $mastermodifiers = Get-Modifiers $masterconf.SelectNodes("columnModifier")
+ #need to prefix master ones with table/ due to some weirdness in the output of the
+ #above expression
+ $mastermodifiers = Get-Modifiers $masterconf.SelectNodes("table/columnModifier")
$slavemodifiers = Get-Modifiers $tableconf.SelectNodes("columnModifier")
- $mastercolumnlist = Get-Columns $masterconf.SelectSingleNode("columnList")
+ $mastercolumnlist = Get-Columns $masterconf.SelectSingleNode("table/columnList")
+
$slavecolumnlist = Get-Columns $tableconf.SelectSingleNode("columnList")
#hashtable of the arguments we will use when calling AddTable-ToCT

0 comments on commit c26a5b6

Please sign in to comment.