Skip to content

Commit 178f693

Browse files
committed
Polish "Warn about limitations of Quartz's schema scripts"
See gh-43955
1 parent 2600e87 commit 178f693

File tree

1 file changed

+3
-4
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/io

1 file changed

+3
-4
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/io/quartz.adoc

+3-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ spring:
3333

3434
WARNING: By default, the database is detected and initialized by using the standard scripts provided with the Quartz library.
3535
These scripts drop existing tables, deleting all triggers on every restart.
36-
It is also possible to provide a custom script by setting the configprop:spring.quartz.jdbc.schema[] property.
37-
38-
WARNING: SQL Server and Azure SQL databases may not use this mechanism because the script requires the specification of the database name directly.
39-
Make a copy of the script and edit it, before using configprop:spring.quartz.jdbc.schema[] to direct Spring to use it.
36+
To use a custom script, set the configprop:spring.quartz.jdbc.schema[] property.
37+
Some of the standard scripts – such as those for SQL Server, Azure SQL, and Sybase – cannot be used without modification.
38+
In these cases, make a copy of the script and edit it as directed in the script's comments then set configprop:spring.quartz.jdbc.schema[] to use your customized script.
4039

4140
To have Quartz use a javadoc:javax.sql.DataSource[] other than the application's main javadoc:javax.sql.DataSource[], declare a javadoc:javax.sql.DataSource[] bean, annotating its javadoc:org.springframework.context.annotation.Bean[format=annotation] method with javadoc:org.springframework.boot.autoconfigure.quartz.QuartzDataSource[format=annotation].
4241
Doing so ensures that the Quartz-specific javadoc:javax.sql.DataSource[] is used by both the javadoc:org.springframework.scheduling.quartz.SchedulerFactoryBean[] and for schema initialization.

0 commit comments

Comments
 (0)