From cca49b5dc265ed40768d2ac0d418d0862c37ce33 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Mon, 12 Oct 2015 06:13:06 -0400 Subject: [PATCH] added information regarding updating the database schema --- src/site/markdown/data/database.md | 5 +++++ src/site/markdown/data/upgrade.md | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/site/markdown/data/upgrade.md diff --git a/src/site/markdown/data/database.md b/src/site/markdown/data/database.md index 3992d4973..b41b7fb61 100644 --- a/src/site/markdown/data/database.md +++ b/src/site/markdown/data/database.md @@ -32,6 +32,11 @@ To setup a centralized database the following generalized steps can be used: Depending on the database being used, you may need to customize the [dbStatements.properties](https://github.com/jeremylong/DependencyCheck/blob/master/dependency-check-core/src/main/resources/data/dbStatements.properties). +Alternatively to modifying the dbStatements.properties it is now possible to use a dialect file to support other databases. +See [dbStatements_h2.properties](https://github.com/jeremylong/DependencyCheck/blob/master/dependency-check-core/src/main/resources/data/dbStatements_h2.properties) +as an example. + +Also, if using an external database you will need to manually upgrade the schema. See [database upgrades](./upgrade.html) for more information. As always, feel free to open an [issue](https://github.com/jeremylong/DependencyCheck/issues) or post a question to the [dependency-check google group](https://groups.google.com/forum/#!forum/dependency-check). diff --git a/src/site/markdown/data/upgrade.md b/src/site/markdown/data/upgrade.md new file mode 100644 index 000000000..abf5f1f97 --- /dev/null +++ b/src/site/markdown/data/upgrade.md @@ -0,0 +1,8 @@ +Database Upgrades +================= +If using an external database server, such as MySQL, a DBA must manually perform +the database upgrades. Currently, a copy of the initialization and upgrade scripts +for MySQL can be found in the [github repository](https://github.com/jeremylong/DependencyCheck/tree/master/dependency-check-core/src/main/resources/data). + +If you want to use an external database other then MySQL please open an issue in our [issue tracker](https://github.com/jeremylong/DependencyCheck/issues) +as a dialect properties file will need to be created. \ No newline at end of file