Skip to content

Commit

Permalink
v4 (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy committed Dec 30, 2021
1 parent d908151 commit ed47785
Show file tree
Hide file tree
Showing 9 changed files with 510 additions and 133 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1 +1,2 @@
data/
data/
.idea
21 changes: 16 additions & 5 deletions README.md
Expand Up @@ -28,12 +28,23 @@ Online reporting application to generate reports from JMeter(Taurus), Locust and
$ http://IP_ADDRESS:2020
```

5. Default credentials
## Migration from v3 to v4
* Shut down the app but leave DB (postgres) running
* Backup you v3 DB!
* Run following query to modify the DB schema:
```
ALTER TABLE jtl.items
DROP COLUMN data_id;
```
* Dump all of your data by running:
```
docker exec -t <container_name> pg_dumpall -a -U postgres > backup_v3.sql
```

```
username: admin
password: 2Txnf5prDknTFYTVEXjj
```
* Import the data to v4 DB (make sure the DB is up):
```
docker exec -i <container_name> psql -U postgres -d jtl_report < backup_v3.sql
```

## Documentation 📖
For additional information please refer to the [documentation](https://jtlreporter.site/docs/).
Expand Down
2 changes: 1 addition & 1 deletion db/Dockerfile
@@ -1,3 +1,3 @@
FROM postgres:11
FROM timescale/timescaledb:2.4.1-pg13
ENV POSTGRES_DB jtl_report
COPY schema.sql /docker-entrypoint-initdb.d/

0 comments on commit ed47785

Please sign in to comment.