mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-24 14:29:23 +00:00
Update migration guide
This commit is contained in:
parent
37ef2acf3e
commit
7499c0d9a9
@ -1,9 +1,20 @@
|
|||||||
# Account images Migration
|
# Account images Migration
|
||||||
May, 25 2020
|
May, 25 2020
|
||||||
|
|
||||||
First, update database structure :
|
**WARNING:** This migration breaks the compatibility with all the previous versions of Comunic. Starting with this update, Comunic API V2 & V3 are no longer backward compatible...
|
||||||
|
|
||||||
|
1. First, update database structure :
|
||||||
```sql
|
```sql
|
||||||
ALTER TABLE `utilisateurs`
|
ALTER TABLE `utilisateurs`
|
||||||
ADD COLUMN `account_image_path` VARCHAR(255) NOT NULL DEFAULT '' AFTER `lang`,
|
ADD COLUMN `account_image_path` VARCHAR(255) NOT NULL DEFAULT '' AFTER `lang`,
|
||||||
ADD COLUMN `account_image_visibility` VARCHAR(45) NOT NULL DEFAULT 'everyone' AFTER `account_image_path`;
|
ADD COLUMN `account_image_visibility` VARCHAR(45) NOT NULL DEFAULT 'everyone' AFTER `account_image_path`;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
2. Run the migration script:
|
||||||
|
```bash
|
||||||
|
node build/index.js config.json migration account_image_2020
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
3. In user data storage, delete the `avatars/adresse_avatars` directory.
|
Loading…
Reference in New Issue
Block a user