Archived
1
0
Fork 0
This repository has been archived on 2024-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
migra/README.md

52 lines
1.2 KiB
Markdown
Raw Normal View History

2021-02-08 07:41:52 +03:00
# Migra
2021-02-21 18:22:00 +03:00
[![CI](https://github.com/pleshevskiy/migra/actions/workflows/rust.yml/badge.svg?branch=main)](https://github.com/pleshevskiy/migra/actions/workflows/rust.yml)
[![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)
[![Crates.io](https://img.shields.io/badge/crates.io-v0.1.2-blue.svg?longCache=true)](https://crates.io/crates/migra-cli)
2021-02-08 07:41:52 +03:00
Simple SQL migration manager for your project.
### Install
```bash
cargo install migra
```
### Usage
A few steps to get you started
1. Initialize migra configuration (Optional)
```bash
migra init
```
2. Make your first migration
```bash
migra make initial_migration
```
3. Check applied and pending migrations
```bash
migra ls
```
4. Upgrade your database
```bash
migra up
```
For more information about the commands, simply run `migra help`
### Supported databases
- [x] Postgres
2021-02-21 23:33:27 +03:00
## License
Licensed under either of these:
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
https://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
https://opensource.org/licenses/MIT)