Warn about Quartz dropping tables on restart

Closes gh-15295
This commit is contained in:
Johannes Zick 2018-11-26 17:52:47 +01:00 committed by Andy Wilkinson
parent ab39e50ece
commit 83cf348ec8
1 changed files with 4 additions and 3 deletions

View File

@ -5999,9 +5999,10 @@ following example:
spring.quartz.jdbc.initialize-schema=always
----
NOTE: By default, the database is detected and initialized by using the standard scripts
provided with the Quartz library. It is also possible to provide a custom script by
setting the `spring.quartz.jdbc.schema` property.
WARNING: By default, the database is detected and initialized by using the standard scripts
provided with the Quartz library. These scripts drop existing tables, deleting all triggers
on every restart. It is also possible to provide a custom script by setting the
`spring.quartz.jdbc.schema` property.
To have Quartz use a `DataSource` other than the application's main `DataSource`, declare
a `DataSource` bean, annotating its `@Bean` method with `@QuartzDataSource`. Doing so