From 327418697c93a6d258594a3a0851dc2a8fbaaef3 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 25 May 2020 17:40:14 +0200 Subject: [PATCH] Update database structure --- docs/MigrationAccountImages25May2020.md | 9 +++++++++ docs/db_struct.sql | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 docs/MigrationAccountImages25May2020.md diff --git a/docs/MigrationAccountImages25May2020.md b/docs/MigrationAccountImages25May2020.md new file mode 100644 index 0000000..3ccc265 --- /dev/null +++ b/docs/MigrationAccountImages25May2020.md @@ -0,0 +1,9 @@ +# Account images Migration +May, 25 2020 + +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`; +``` diff --git a/docs/db_struct.sql b/docs/db_struct.sql index 517a4c8..b2c0f1a 100644 --- a/docs/db_struct.sql +++ b/docs/db_struct.sql @@ -558,6 +558,8 @@ CREATE TABLE `utilisateurs` ( `password_reset_token` varchar(255) DEFAULT NULL, `password_reset_token_time_create` int(11) DEFAULT NULL, `lang` varchar(4) DEFAULT 'en', + `account_image_path` varchar(255) NOT NULL DEFAULT '', + `account_image_visibility` varchar(45) NOT NULL DEFAULT 'everyone', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;