Compare Schema - Ackara/Daterpillar GitHub Wiki
This cmdlet compares the structure of two [Acklann.Daterpillar.Schema] objects.
Compare-Schema [-Source] <Schema> [-Target] <Schema> [<CommonParameters>]
Compare two [Acklann.Daterpillar.Schema] objects; returned is a PSObject with two properties 'State' and 'Differences'. The 'State' property is a enum value of type [Acklann.Daterpillar.Migration.MigrationState] where as the 'Differences' property is a string listing the differences between the passed objects.
C:\PS> Compare-Schema $left $right | Select-Object -ExpandProperty StateThis example, compares two [Acklann.Daterpillar.Schema] objects ($left and $right) then selects the returned object's State property, which is an enum of Type [Acklann.Daterpillar.Migration.MigrationState].
C:\PS> Compare-Schema $left $right | Select-Object -ExpandProperty Differences;This example, compares two [Acklann.Daterpillar.Schema] objects ($left and $right) then selects the returned object's Differences property, which is a string describing the differences between the two objects.
The source/left schema.
Type: Schema
Parameter Sets: Set 1
Aliases: left , src
Required: true
Position: 1
Default Value:
Pipeline Input: falseThe target/right schema.
Type: Schema
Parameter Sets: Set 1
Aliases: right , dest
Required: true
Position: 2
Default Value:
Pipeline Input: falseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Generated by: PowerShell HelpWriter 2017 v2.1.34