Skip to content

Commit 64b0627

Browse files
committed
Sync documentation of main branch
1 parent 698a5fa commit 64b0627

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

_generated-doc/main/infra/quarkus-all-build-items.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2823,6 +2823,22 @@ _No Javadoc found_
28232823
_No Javadoc found_
28242824

28252825

2826+
2827+
2828+
a| https://github.com/quarkusio/quarkus/blob/main/extensions/agroal/spi/src/main/java/io/quarkus/agroal/spi/JdbcUpdateSQLGeneratorBuildItem.java[`io.quarkus.agroal.spi.JdbcUpdateSQLGeneratorBuildItem`, window="_blank"]
2829+
[.description]
2830+
--
2831+
Registers a JDBC generator that produces SQL update scripts for the specified database.
2832+
The generated SQL updates the database schema so it matches the current model.
2833+
-- a|`java.lang.String databaseName`
2834+
2835+
_No Javadoc found_
2836+
2837+
`java.util.function.Supplier<String> sqlSupplier`
2838+
2839+
_No Javadoc found_
2840+
2841+
28262842
|===
28272843
== Amazon Lambda
28282844
[.configuration-reference,cols=2*]

_versions/main/guides/hibernate-orm.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,10 @@ Add the following in your properties file.
888888
----
889889

890890
[[flyway]]
891-
== Automatically transitioning to Flyway to Manage Schemas
891+
== Flyway integration
892+
893+
[[flyway-transition-from-entities]]
894+
=== Automatically transitioning to Flyway to Manage Schemas
892895

893896
If you have the xref:flyway.adoc[Flyway extension] installed when running in development mode,
894897
Quarkus provides a simple way to initialize your Flyway configuration
@@ -908,6 +911,19 @@ link in the Flyway pane. Hit the `Create Initial Migration` button and the follo
908911
WARNING: This button is simply a convenience to quickly get you started with Flyway, it is up to you to determine how you want to
909912
manage your database schemas in production. In particular the `migrate-at-start` setting may not be right for all environments.
910913

914+
[[flyway-incremental-from-entities]]
915+
=== Incremental migrations from entity changes
916+
917+
After the first migration is created, Quarkus can derive a draft migration from your updated entity model, so you don’t need to hand‑write a baseline for each change.
918+
To create a new migration, click the `Generate Migration File` button in the Dev UI Flyway pane.
919+
920+
WARNING: Always review the suggested script. While Quarkus infers schema changes from your entities, domain‑specific data movements, concurrency considerations, and advanced index strategies still require human judgment.
921+
922+
Generated migration files follow the following pattern:
923+
924+
- Major version is extracted from the last existing migration in your project.
925+
- Minor version is the current timestamp at generation time.
926+
911927
[[offline]]
912928
== Offline startup
913929

0 commit comments

Comments
 (0)