ahukkanen/c5_db_case_sensitivity — pull request #1 by evilito (2012-06-27 01:32:02+00:00)
Title: Removes non-existent tables in the migration script

Check if a table exist before adding it to the migration script. Nobody will miss non-existent tables in the script for sure. This avoids the execution of the script to be stopped because of non-existent tables, leaving table names changed partially.

This patch also removes SystemAntiSpamLibraries from the special tables list, as it is already in the core db.xml. This prevents the table to appear twice in the migration script as it is currently happening.

The condition that was removed implies that the SQL statement "DROP TABLE IF EXISTS" should always be included for every table included in the generated migration script. The "IF EXISTS" part makes it safe even if the "old correctly named table" doesn't exist.