mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +00:00
Update database structure
This commit is contained in:
parent
334802ba05
commit
327418697c
9
docs/MigrationAccountImages25May2020.md
Normal file
9
docs/MigrationAccountImages25May2020.md
Normal 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`;
|
||||||
|
```
|
@ -558,6 +558,8 @@ CREATE TABLE `utilisateurs` (
|
|||||||
`password_reset_token` varchar(255) DEFAULT NULL,
|
`password_reset_token` varchar(255) DEFAULT NULL,
|
||||||
`password_reset_token_time_create` int(11) DEFAULT NULL,
|
`password_reset_token_time_create` int(11) DEFAULT NULL,
|
||||||
`lang` varchar(4) DEFAULT 'en',
|
`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`)
|
PRIMARY KEY (`ID`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user