Initial support for relational query flattening
Fix polycheck break.
Migrations: Add PowerShell commands