Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

nossas/bonde-migrations

Repository files navigation

under development

TODO

  • create dockerfile
  • create config for deploy
  • create initial schema from database
  • run sql specs in this repo
  • create makefile to simplify to run migrations and specs

bonde-migrations

database roles

create role postgraphql login password '3x4mpl3';
create role anonymous;
create role common_user;
create role admin;

create a new migration

diesel migration --database-url="postgres://postgres@localhost:5432/db" generate migration_name

running migrations

diesel migration --database-url="postgres://postgres@localhost:5432/db "run

rollback your migration

diesel migration --database-url="postgres://postgres@localhost:5432/db" redo

how to run with docker

docker run --net=host -e DATABASE_URL="postgres://postgres@localhost:5432/db" -it nossas/bonde-migrations diesel migration run

run sql-specs

./run_sql_test.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages