@@ -30,6 +30,7 @@ Designed for Postgres 12 and later.
30 - [Remove index](#remove-index)
30 - [Remove index](#remove-index)
31 - [Enums](#enums)
31 - [Enums](#enums)
32 - [Create enum](#create-enum)
32 - [Create enum](#create-enum)
33+ - [Remove enum](#remove-enum)
33- [Commands and options](#commands-and-options)
34- [Commands and options](#commands-and-options)
34 - [`reshape migrate`](#reshape-migrate)
35 - [`reshape migrate`](#reshape-migrate)
35 - [`reshape complete`](#reshape-complete)
36 - [`reshape complete`](#reshape-complete)
@@ -443,6 +444,8 @@ index = "name_idx"
444The `create_enum` action will create a new [enum type](https://www.postgresql.org/docs/current/datatype-enum.html) with the specified values.
445The `create_enum` action will create a new [enum type](https://www.postgresql.org/docs/current/datatype-enum.html) with the specified values.
447+*Example: add a new `mood` enum type with three possible values*
447[[actions]]
450[[actions]]
448type = "create_enum"
451type = "create_enum"
@@ -450,6 +453,18 @@ name = "mood"
450values = ["happy", "ok", "sad"]
453values = ["happy", "ok", "sad"]
458+The `remove_enum` action will remove an existing [enum type](https://www.postgresql.org/docs/current/datatype-enum.html). Make sure all usages of the enum has been removed before running the migration. The enum will only be removed once the migration is completed.
460+*Example: remove the `mood` enum type*
453## Commands and options
468## Commands and options
455### `reshape migrate`
470### `reshape migrate`