Commit 6f07155d authored by Andy Wilkinson's avatar Andy Wilkinson

Merge pull request #15295 from Johannes Zick

* gh-15295:
  Warn about Quartz dropping tables on restart
parents ab39e50e 83cf348e
...@@ -5999,9 +5999,10 @@ following example: ...@@ -5999,9 +5999,10 @@ following example:
spring.quartz.jdbc.initialize-schema=always spring.quartz.jdbc.initialize-schema=always
---- ----
NOTE: By default, the database is detected and initialized by using the standard scripts WARNING: 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 provided with the Quartz library. These scripts drop existing tables, deleting all triggers
setting the `spring.quartz.jdbc.schema` property. 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 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 a `DataSource` bean, annotating its `@Bean` method with `@QuartzDataSource`. Doing so
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment