1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-21 21:09:22 +00:00

Update database structure

This commit is contained in:
Pierre HUBERT 2020-05-25 17:40:14 +02:00
parent 334802ba05
commit 327418697c
2 changed files with 11 additions and 0 deletions

View File

@ -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`;
```

View File

@ -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;