Skip to content
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

Auto DDL option is not running initialization script #4787

Closed
m0mus opened this issue Aug 24, 2022 · 0 comments
Closed

Auto DDL option is not running initialization script #4787

m0mus opened this issue Aug 24, 2022 · 0 comments
Assignees
Labels
archetypes bug Something isn't working P2
Milestone

Comments

@m0mus
Copy link
Contributor

m0mus commented Aug 24, 2022

I am generate a new database project using this command: https://helidon.io/starter/3.0.1?flavor=mp&step=5&app-type=database&media.json-lib=jsonb&db.server=mysql&db.auto-ddl=true

Auto DDL configuration works, but it's not running META-INF/init_script.sql, so the database doesn't get initialized with data which can be confusion for users.

Adding this command to persistence.xml solves the issue:

<property name="javax.persistence.sql-load-script-source" value="META-INF/init_script.sql"/>
@github-actions github-actions bot added this to Triage in Backlog Aug 24, 2022
@barchetta barchetta added archetypes bug Something isn't working P2 labels Aug 24, 2022
@barchetta barchetta moved this from Triage to High priority in Backlog Aug 24, 2022
@barchetta barchetta added this to the 3.0.2 milestone Aug 24, 2022
@barchetta barchetta added this to To do in 3.0.2 via automation Aug 26, 2022
@aserkes aserkes closed this as completed Aug 31, 2022
Backlog automation moved this from High priority to Closed Aug 31, 2022
@barchetta barchetta moved this from To do to Done in 3.0.2 Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archetypes bug Something isn't working P2
Projects
Backlog
  
Closed
3.0.2
Done
Development

No branches or pull requests

3 participants