valderman / selda

A type-safe, high-level SQL library for Haskell
https://selda.link
MIT License
478 stars 58 forks source link

Improve auto migration #176

Open taqenoqo opened 2 years ago

taqenoqo commented 2 years ago

So far, only the following migration steps have been possible:

[[Migration a1 a2 pure, Migration b1 b2 pure]
, [Migration a2 a3 pure, Migration b2 b2 pure]
, [Migration a3 a4 pure, Migration b2 b3 pure]
]

This pull request makes it possible to write the following flexible steps:

[[Migration a1 a2 pure, Migration b1 b2 pure]
, [Migration a2 a3 pure]
, [Migration a3 a4 pure]
, []
, [Migration b2 b3 pure]
]