Fix for issue #45

It creates an index with a shorter name, compatible with SQLite. The fix is only in effect when the current adapter is SQLite.