Fixed #23303 -- Add BEGIN and COMMIT statements to the output of sqlmigr...

...ate.
CommandError is unused