# 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](../../topics/Migrations.md) 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
```
