db safe quoting in migration
Merge pull request #1618 from opf/hotfix/migration_quoting

db safe quoting in migration