| Crates.io | migra-cli |
| lib.rs | migra-cli |
| version | 0.6.0 |
| created_at | 2021-02-05 22:53:56.902757+00 |
| updated_at | 2021-06-12 22:44:26.070703+00 |
| description | Simple SQL migration manager for your project |
| homepage | https://github.com/pleshevskiy/migra |
| repository | https://github.com/pleshevskiy/migra |
| max_upload_size | |
| id | 351345 |
| size | 107,194 |
Simple SQL migration manager for your project.
cargo install migra-cli
If you want to use dotenv for configure migra cli, just run the following in your terminal.
cargo install migra-cli --features dotenv
Each supported database is located in separate features with a similar name.
The default is postgres.
For example, if you only want to work with mysql, you need to disable postgres and enable mysql.
cargo install migra-cli --no-default-features --features mysql
A few steps to get you started
migra init
migra make initial_migration
migra ls
migra up
For more information about the commands, simply run migra help
| Database | Feature | Default |
|---|---|---|
| Postgres | postgres | :heavy_check_mark: |
| MySQL | mysql | :x: |
| Sqlite | sqlite | :x: |
Licensed under either of these: