-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ORM Generation error when value is update with mysql #9896
Comments
Probably related to #5883 |
@Sanne
If this is a issue, is the problem on Quarkus or Hibernate? |
Same behavier here. When trying to add an attribute to any entity, quarkus shows an error on console saying table cannot be recreated. 2020-08-03 10:01:01,515 WARN [org.hib.too.sch.int.ExceptionHandlerLoggedImpl] (Quarkus Main Thread) GenerationTarget encountered exception accepting command : Error executing DDL "create table Usuario (id bigint not null auto_increment, email varchar(255), nome varchar(255), senha varchar(255), primary key (id)) engine=InnoDB" via JDBC Statement: org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "create table Usuario (id bigint not null auto_increment, email varchar(255), nome varchar(255), senha varchar(255), primary key (id)) engine=InnoDB" via JDBC Statement |
Does this happen also on PostGres, folks? |
I've got the same problem with quarkus 1.9.2 and mysql. |
This looks like a duplicate of #5883, which was fixed in Quarkus 2.0. At the very least, while I'm able to reproduce the problem in Quarkus 1.0, I'm not able to reproduce it in 1.13. I'll go ahead and assume this was fixed; please reopen this issue or open another one if I'm wrong. EDIT: And please provide a reproducer :) |
Describe the bug
if use
quarkus.hibernate-orm.database.generation=update
with MySQL database, quarkus tries to create the schema again. Its behavior is like generation was create
Expected behavior
Quarkus should only update the schema and not recreate it.
Actual behavior
Quarkus tries to create the schema again
To Reproduce
Steps to reproduce the behavior:
It happens in dev and production environments.
The text was updated successfully, but these errors were encountered: