mjcmatrix opened a new issue, #14642:
URL: https://github.com/apache/grails-core/issues/14642

   Environment: `GORM 5.0.0.RC3 in Grails 3.1.0.RC1, Hibernate, dev mode, H2 
in-memory database`
   
   On startup I see this error logged in DB `update` mode:
   
   ```
   ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - HHH000388: Unsuccessful: 
create index idx_slug on report (slug)
   ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Index "IDX_SLUG" already 
exists; SQL statement:
   create index idx_slug on report (slug) [42111-190]
   ```
   
   The schema here is `Report -> ReferableAuditable -> Auditable -> 
Persistable`.
   
   `Report` is a concrete domain class in `grails-app/domain`.
   `ReferableAuditable` is an abstract base class in `src/main/groovy` that 
declares a **slug** property `String slug` and sets a unique index on `slug` 
named `idx_slug`, declared in the `static mapping`.
   `Auditable` is an abstract base class in `src/main/groovy`.
   `Persistable` is the root abstract base class in `src/main/groovy`.
   
   GORM seems to be trying to create `idx_slug` for the concrete entity in 
addition to the subclass and it already exists.
   
   `Report` declares no `static mapping` of its own.
   


-- 
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]

Reply via email to