Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Examples for Oh Krab!

License

NotificationsYou must be signed in to change notification settings

ohkrab/examples

Repository files navigation

Setup

  1. Install krab

https://ohkrab.dev/docs/get_started/installation/

  1. Spin up test database and db browser
docker-compose up

Browser can be accessed at:http://localhost:5556/

  1. Export database url
export DATABASE_URL=postgres://krab:secret@localhost:5555/krab?sslmode=disable

Run example

  1. Export dir with example
export KRAB_DIR=migrations-simple/
  1. Run a command
krab
  1. Try other commands
krab migrate up animalskrab migrate status animalskrab migrate down animals -version v1krab migrate status animals

[8]ページ先頭

©2009-2025 Movatter.jp