Overrides migration templates to check for the existence of tables and columns before database changes.