silverstripe/silverstripe-postgresql — pull request #7 by sminnee (2012-09-18 00:45:50+00:00)
Title: Index fixes

These commits are needed to fix the tests that I broke last night. I opted for overriding PostgreSQLDatabase::requireIndex() rather than changing the API here. Tidying up the APIs could be considered for 3.1, but not 3.0.

It's a bit of copy pasta but the lesser of two evils, IMO.

Note that this change will use different names for the indexes in a PostgreSQL database. They're now based on MD5 checksums in order to prevent name collision in the case where the end of an index name is truncated. None of the original indexes will be deleted, which is in keeping with dev/build's usual "only add, don't delete" way of operating.