Back to Exposed

Exposed Migrations

documentation-website/Writerside/snippets/exposed-migrations/README.md

1.2.0779 B
Original Source

Exposed Migrations

A Gradle application that shows how to generate a migration script using Exposed and apply a migration using Flyway. The files are referenced in the Migrations topic.

Build

To build the application, in a terminal window navigate to the snippets folder and run the following command:

shell
./gradlew :exposed-migrations:build

Generate a migration script

To generate the migration script, in a terminal window navigate to the snippets folder and run the following command:

shell
./gradlew :exposed-migrations:generateMigrationScript

Run

To run the application, in a terminal window navigate to the snippets folder and run the following command:

shell
./gradlew :exposed-migrations:run