code: entity, migration, quick migration
This commit is contained in:
13
Justfile
13
Justfile
@@ -1,15 +1,15 @@
|
||||
default:
|
||||
@just hello
|
||||
@echo "# Miniweb Project"
|
||||
@just --list
|
||||
|
||||
# Run Service
|
||||
run:
|
||||
@cargo run --bin miniweb
|
||||
|
||||
# Run Bins
|
||||
bin args='':
|
||||
@cargo run --bin {{args}}
|
||||
|
||||
hello:
|
||||
@echo "Hello, world!"
|
||||
|
||||
status:
|
||||
sea-orm-cli status
|
||||
|
||||
@@ -21,12 +21,15 @@ pg-up:
|
||||
pg-down:
|
||||
cd docker && docker-compose down
|
||||
|
||||
# Run Migrations
|
||||
migrate:
|
||||
sea-orm-cli up
|
||||
|
||||
# Install Developer dependencies
|
||||
dev-install:
|
||||
cargo install sea-orm-cli
|
||||
|
||||
# Reset Database
|
||||
dev-reset:
|
||||
sea-orm-cli migrate reset
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user