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;