https://github.com/abdelilahou/tenasher
run sea-orm-migrations programmatically
https://github.com/abdelilahou/tenasher
rust sea-orm-migrations
Last synced: 2 months ago
JSON representation
run sea-orm-migrations programmatically
- Host: GitHub
- URL: https://github.com/abdelilahou/tenasher
- Owner: AbdelilahOu
- Created: 2023-12-02T18:03:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-02T18:16:49.000Z (over 1 year ago)
- Last Synced: 2025-02-14T01:53:50.167Z (4 months ago)
- Topics: rust, sea-orm-migrations
- Language: Rust
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tenasher
## sea-orm migrations example cli
### how to use
I have defined my custome commands in the src/main.rs you can edit as you wish
- Apply all pending migrations
```sh
cargo run up
```
- Rollback all applied migrations
```sh
cargo run down
```
- Drop all tables from the database, then reapply all migrations
```sh
cargo run fresh
```