1.4.2-alpha - another hotfix

This commit is contained in:
mst 2024-09-19 18:47:56 +03:00
parent f19e68fa99
commit 351dc3e99c
3 changed files with 20 additions and 4 deletions

View file

@ -1,3 +1,8 @@
## 1.4.2
### Fixes
* add `rules` to `instance` in config.example.json
## 1.4.1
### Fixes

View file

@ -1,6 +1,16 @@
## 1.3.0 -> 1.4.0
first, pull the update from the repository: `git pull`
second, you'll need to update the database schema as it was changed slightly in this update, run these queries in mysql/mariadb console:
```USE <catask database name>;```
```ALTER TABLE answers CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;```
```ALTER TABLE questions CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;```
```USE <catask database name>;```
```ALTER TABLE answers CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;```
```ALTER TABLE questions CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;```
after that, open your config file and add `"rules": ""` to `"instance"`, like this:
```
...
"instance": {
...
"fullBaseUrl": "https://catask.localhost",
"rules": ""
},
...
```

View file

@ -3,7 +3,8 @@
"title": "CatAsk",
"description": "Ask me something!",
"image": "/static/img/ca_screenshot.png",
"fullBaseUrl": "https://catask.localhost"
"fullBaseUrl": "https://catask.localhost",
"rules": ""
},
"charLimit": "512",
"anonName": "Anonymous",