Factored create_fk_sql, create_unique_sql, and delete_constraint_sql.
Fixed #23065 -- Quoted constraint names in SQL generated by migrations.