Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/runk/kayako-cleaner
Script that helps you to clean old data from kayako database (Kayako helpdesk solution, http://kayako.com/)
https://github.com/runk/kayako-cleaner
Last synced: about 2 months ago
JSON representation
Script that helps you to clean old data from kayako database (Kayako helpdesk solution, http://kayako.com/)
- Host: GitHub
- URL: https://github.com/runk/kayako-cleaner
- Owner: runk
- Created: 2012-08-03T12:22:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-11-01T22:44:02.000Z (about 2 years ago)
- Last Synced: 2024-10-14T00:32:06.144Z (3 months ago)
- Size: 3.91 KB
- Stars: 8
- Watchers: 7
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
kayako-cleaner
==============Script allows you to purge old data from kayako database (Kayako helpdesk solution, http://kayako.com/).
### Usage
Usage is pretty easy, you have to run something like this:
```shell
$ mysql -D kayakodb -u dbuser -p < cleaner.sql
```### Configuration
By default this script removes all tickets **older than 90 days**. The point is in editing the query that collects ticket
ids, so if you want any complex criteria - write it here:```sql
INSERT INTO ticketids(ticketid)
SELECT ticketid FROM swtickets WHERE (dateline + (86400 * 90) < UNIX_TIMESTAMP(NOW()));
```### Purge all tickets in trash
Run the clean-trash.sql script