diff --git a/modality-api-client/pom.xml b/modality-api-client/pom.xml index 7e012bc..038658a 100644 --- a/modality-api-client/pom.xml +++ b/modality-api-client/pom.xml @@ -22,7 +22,7 @@ under the License. com.republicate.modality modality - 2.1.1 + 2.1.2 modality-api-client diff --git a/modality-core/README.md b/modality-core/README.md index 2ca6a35..8ddf723 100644 --- a/modality-core/README.md +++ b/modality-core/README.md @@ -27,7 +27,7 @@ Lightweight ORM for Java, providing: + works with any JDBC-compliant data source + instances (rows) can be mapped to any POJO + connections and prepared statements pooling -+ database schema versionning ++ database migration scripts ## Main Concepts @@ -240,9 +240,9 @@ model.filters.write.*.html_* = -no_html model.filters.read.*.html_* = escape_html ``` -### Database schema versionning +### Database schema versioning -Modality provides a basic schema versionning feature. +Modality provides a basic schema versioning feature. Migration scripts are specific to each database schema. They are searched in the `migations/$modelId` directory, which can be changed using the `model.migration_scripts` configuration property. @@ -265,3 +265,5 @@ That's it. No checksum tests as in Flyway or Liquibase, which I found rather cou Be aware that when using an engine which is not able to handle rollbacks of DDL statements (like `mysql` and `mariadb`), you will have to manually revert those if something wrong happens. When updating a schema, if you are maintaining global creation scripts, you would typically add the `model_version` table and populate it with the considered scripts. + +Note that for now, Modality requires the target schema to already exist. diff --git a/modality-core/pom.xml b/modality-core/pom.xml index f0591d7..ecf8123 100644 --- a/modality-core/pom.xml +++ b/modality-core/pom.xml @@ -24,7 +24,7 @@ com.republicate.modality modality - 2.1.1 + 2.1.2 modality-core diff --git a/modality-examples/modality-example-bookshelf/pom.xml b/modality-examples/modality-example-bookshelf/pom.xml index d8c8050..fdad62c 100644 --- a/modality-examples/modality-example-bookshelf/pom.xml +++ b/modality-examples/modality-example-bookshelf/pom.xml @@ -22,7 +22,7 @@ under the License. com.republicate.modality modality-examples - 2.1.1 + 2.1.2 modality-example-bookshelf diff --git a/modality-examples/pom.xml b/modality-examples/pom.xml index 42b5e32..6e33db4 100644 --- a/modality-examples/pom.xml +++ b/modality-examples/pom.xml @@ -22,7 +22,7 @@ under the License. com.republicate.modality modality - 2.1.1 + 2.1.2 modality-examples diff --git a/modality-webapp-auth/pom.xml b/modality-webapp-auth/pom.xml index f3510ef..8ce8214 100644 --- a/modality-webapp-auth/pom.xml +++ b/modality-webapp-auth/pom.xml @@ -22,7 +22,7 @@ under the License. com.republicate.modality modality - 2.1.1 + 2.1.2 modality-webapp-auth diff --git a/modality-webapp/pom.xml b/modality-webapp/pom.xml index 5376e20..c0e0455 100644 --- a/modality-webapp/pom.xml +++ b/modality-webapp/pom.xml @@ -22,7 +22,7 @@ under the License. com.republicate.modality modality - 2.1.1 + 2.1.2 modality-webapp diff --git a/pom.xml b/pom.xml index 088c779..2640fd8 100644 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,7 @@ under the License. com.republicate.modality modality - 2.1.1 + 2.1.2 pom ${project.groupId}:${project.artifactId} diff --git a/velocity-tools-model/pom.xml b/velocity-tools-model/pom.xml index 86a7e17..50db32d 100644 --- a/velocity-tools-model/pom.xml +++ b/velocity-tools-model/pom.xml @@ -23,7 +23,7 @@ under the License. com.republicate.modality modality - 2.1.1 + 2.1.2 velocity-tools-model