From 7499c0d9a991edce931e8e5a0447745c19d32ec1 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 25 May 2020 19:07:19 +0200 Subject: [PATCH] Update migration guide --- docs/MigrationAccountImages25May2020.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/MigrationAccountImages25May2020.md b/docs/MigrationAccountImages25May2020.md index 3ccc265..6f51f7f 100644 --- a/docs/MigrationAccountImages25May2020.md +++ b/docs/MigrationAccountImages25May2020.md @@ -1,9 +1,20 @@ # Account images Migration 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 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`; ``` + + +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. \ No newline at end of file