Fixed schema for older MySQL version.