erplibre/doc/MIGRATION.md

40 lines
1.2 KiB
Markdown
Raw Normal View History

2021-07-21 04:31:35 -04:00
# Migration
Guide to help migration with different version.
## Docker
- Clone project if only download docker-compose
- `git init`
- `git remote add origin https://github.com/erplibre/erplibre`
- `git fetch`
- `mv ./docker-compose.yml /tmp/temp_docker-compose.yml`
- `git checkout master`
- `mv /tmp/temp_docker-compose.yml ./docker-compose.yml`
- Do manually a backup of ERPLibre database (TODO implement makefile command)
- Update `./docker-compose.yml` depending of difference with git.
- Run script `make docker_exec_erplibre_gen_config`
- Stop the docker `make docker_stop`
- Delete the volume, `docker volume rm ${BASENAME}_erplibre-db-data`
- Start the docker `make docker_run_daemon`
- Restore the backup manually.
### Database migration, PostgreSQL update 11 to 12
2022-03-03 14:35:23 -05:00
TODO not working automatically, check last procedure and do it manually. The command to the docker is missing support
when database is external.
2021-07-21 04:31:35 -04:00
Easy way, do a backup with ERPLibre, upgrade Postgresql, restore the same backup.
List all database :
```bash
make docker_show_databases
```
## Vanilla
- Run script `make install_dev`
- Restart your daemon
- Regenerate master password manually