mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-20 05:43:41 -05:00
update instructions for 1.5.0
This commit is contained in:
parent
59b4648cc8
commit
465e7e4900
1 changed files with 39 additions and 8 deletions
43
UPDATE.md
43
UPDATE.md
|
@ -1,16 +1,47 @@
|
||||||
## 1.3.0 -> 1.4.0
|
## 1.4.x -> 1.5.0
|
||||||
|
|
||||||
|
pull the update as usual: `git pull`
|
||||||
|
run `pip install -r requirements.txt` again to install newly required packages
|
||||||
|
make the following changes in your config.json file:
|
||||||
|
```diff
|
||||||
|
...
|
||||||
|
"instance": {
|
||||||
|
...
|
||||||
|
- "image": "/static/img/ca_screenshot.png",
|
||||||
|
+ "image": "/static/icons/favicon/android-chrome-192x192.png",
|
||||||
|
...
|
||||||
|
},
|
||||||
|
+ "style": {
|
||||||
|
+ "accentLight": "#6345d9",
|
||||||
|
+ "accentDark": "#7259d9",
|
||||||
|
+ "bgLight": "#ffffff",
|
||||||
|
+ "bgDark": "#202020",
|
||||||
|
+ "navStyle": "underline",
|
||||||
|
+ "tintColors": false,
|
||||||
|
+ "infoBoxLayout": "column"
|
||||||
|
+ },
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
## 1.3.0 -> 1.4.x
|
||||||
first, pull the update from the repository: `git pull`
|
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:
|
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;```
|
|
||||||
after that, open your config file and add `"rules": ""` to `"instance"`, like this:
|
|
||||||
```
|
```
|
||||||
|
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:
|
||||||
|
```diff
|
||||||
...
|
...
|
||||||
"instance": {
|
"instance": {
|
||||||
...
|
...
|
||||||
"fullBaseUrl": "https://catask.localhost",
|
"fullBaseUrl": "https://catask.localhost",
|
||||||
"rules": ""
|
+ "rules": ""
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue