ppazos opened a new issue, #14603:
URL: https://github.com/apache/grails-core/issues/14603
### Steps to Reproduce
1. Create a domain class like this:
```
class MyDomain {
String attr
static constraints = {
attr(maxSize: 2048)
}
static mapping = {
attr index: 'my_idx'
}
}
```
2. run-app
3. Check the database, the index is not being created since 2048 exceeds the
index max size (255).
### Expected Behaviour
The index creation code should check the maxSize and specify the size of the
index like (this is for MySQL):
`INDEX `my_idx` (`attr`(255))`
### Actual Behaviour
It seems Grails is not checking the maxSize and tries to create the index
without the size, and the database is not allowing it.
### Environment Information
- **Grails Version:** 2.5.6
- **JDK Version:** 1.7
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]