Automatically fix lower case table names in SilverStripe


/ Published in: PHP
Save to your folder(s)

This code should be inserted into /sapphire/core/model/MySQLDatabase.php at line 399 (after the if statment ends and before the user_error call)

Be sure to replace 'database_name' with, well you know...

When I used this I first loaded the home page. This fixed a large number of the tables, then ran /dev/build and that fixed the rest.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.