migra/README.md

1.4 KiB

Migra

CI unsafe forbidden Crates.io Crates.io

Simple SQL migration manager for your project.

Install

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

Usage

A few steps to get you started

  1. Initialize migra configuration (Optional)
    migra init
    
  2. Make your first migration
    migra make initial_migration
    
  3. Check applied and pending migrations
    migra ls
    
  4. Upgrade your database
    migra up
    

For more information about the commands, simply run migra help

Supported databases

  • Postgres
  • MySQL

License

Licensed under either of these: