sea-orm icon indicating copy to clipboard operation
sea-orm copied to clipboard

Custom migration dir

Open ns-sjorgedeaguiar opened this issue 1 year ago • 0 comments
trafficstars

New Features

Allow customizing the migration directory in sea-orm-migration CLI. This allow embedding migrations to an existing crate (and/or inside a subdirectory) instead of enforcing a separate crate.

This also aligns the behavior of the tool with sea-orm-cli, where the migration directory is already customizable.

Changes

The entrypoint was adjusted as to facilitate testing, and tests are added for the migrate command. The migration directory can be specified via command line argument or environment variable, but the same default value (./) is still used if unspecified.

ns-sjorgedeaguiar avatar Jul 11 '24 16:07 ns-sjorgedeaguiar