Fixes #3403: Add a SQL migration script for the workflows, and replace the autoDeployOnModification property with workflow.enabled (corrected minor errors)