aboutsummaryrefslogtreecommitdiff
path: root/src/api/database/migrations/20201227023216_addUniques.js
Commit message (Collapse)AuthorAgeFilesLines
* chore: Move statistics related functions to it's own fileZephyrrus2021-01-071-0/+1
| | | | | | fix: Extract database constructor to a separate file to ensure we only create one knex instance/db feat: Add cron for saving the stats to the database every hour feat: Get cached stats from database (if a stat is not found in the db, generate it)
* feat: check for real mimetype using file-typeZephyrrus2021-01-071-1/+1
| | | | For now, if file-type returns undefined, we take the value from the browser. In the future this should be removed to ensure people can't bypass the real mime checking using a special file that can't be recognized by file-type.
* Squashed commit of the following:Pitu2020-12-271-0/+33
commit df4b0378571708086a276e49ac8630095e08b0b7 Author: Pitu <[email protected]> Date: Sun Dec 27 03:00:17 2020 +0900 feat: move database modification to a new migration file