#foreach ($index in $table.Indices) CREATE #if($index.IsUnique)UNIQUE#end INDEX $index.IndexName ON $table.Name ($index.IndexColumnList); #end