Updated Issues and Solutions (markdown)

master
Hunter Long 2020-09-18 23:53:28 -07:00
parent bebb068dc6
commit 94530040ad
1 changed files with 6 additions and 1 deletions

@ -17,4 +17,9 @@ If you notice a database error during migration, you can reset your Statping ins
- In your Statping directory (contains config.yml) run command: `statping export`. This will export all elements into a timestamped JSON file. This file will not include previous hits or failures.
- Delete `assets` folder if you have one.
- Delete and Recreate MySQL, Postgres database, or delete `statping.db`.
- Import previous data by running: `statping import backup.json` (replace backup.json with your exported filename)
- Import previous data by running: `statping import backup.json` (replace backup.json with your exported filename)
## Deleting Old Records
- `DELETE FROM hits WHERE created_at < '2020-02-21 00:00:00';` // Delete hits older than
- `DELETE FROM failures WHERE created_at < '2020-02-21 00:00:00';` // Delete failures older than