An open API service indexing awesome lists of open source software.

https://github.com/leoviana00/flyway-docker

Testando o flyway
https://github.com/leoviana00/flyway-docker

docker flyway

Last synced: about 1 month ago
JSON representation

Testando o flyway

Awesome Lists containing this project

README

        

## Testando o Flyway

- `Docker`
- `Pgsql`
- `Flyway`
- `Migration`

## Para confirmar que a tabela foi criada no Postgres
```bash
docker-compose exec db psql -U flyway -d flyway_teste -W -c "select * from flyway.flyway_schema_history"
```

## Checar a tabela pessoa
```bash
docker-compose exec db psql -U flyway -d flyway_teste -W -c "\d+ pessoa"
```

## Back up database
```bash
docker exec -u postgres proget-postgres pg_dump -Cc | xz > proget-backup-$(date -u +%Y-%m-%d).sql.xz
```

## Restore database from backup
```bash
xz -dc proget-backup-2021-03-02.sql.xz | docker exec -i -u postgres proget-postgres psql –set ON_ERROR_STOP=on –single-transaction
```
## Rodando o composer
`docker-compose up -d`