1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00
comunicapiv2/docs/MigrationAccountImages25May2020.md

20 lines
662 B
Markdown
Raw Normal View History

2020-05-25 15:40:14 +00:00
# Account images Migration
May, 25 2020
2020-05-25 17:07:19 +00:00
**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 :
2020-05-25 15:40:14 +00:00
```sql
ALTER TABLE `utilisateurs`
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`;
```
2020-05-25 17:07:19 +00:00
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.