Commit Graph

18 Commits

Author SHA1 Message Date
Michael 5a33a494e8 Updated full text indexes 2024-01-21 16:39:28 +00:00
Hypolite Petovan 38f04616d2 [Database 1525] Deprecate profile.name in favor of user.username 2023-08-20 14:00:01 -04:00
Tobias Diekershoff a98d321376 add the homepage_verified field to the profile table and the owner-view 2022-11-07 11:15:55 +01:00
Michael 144547009b All URL fields are now binary and longer 2022-09-04 07:54:01 +00:00
Michael bee04f86ee Matrix addresses can be entered in the profile 2021-08-09 01:39:09 +00:00
Michael 7106106f11 Formatted index list 2021-06-14 12:15:10 +00:00
Michael 3d74d0a49c Updated documentation 2021-06-14 08:54:57 +00:00
Michael 96f07c7288 Indexes and foreign keys added 2021-06-14 08:53:37 +00:00
Michael 2cd0c1d30d Trailing whitespace removed 2021-06-14 06:10:11 +00:00
Michael fd30df7300 Pad the header 2021-06-14 05:58:51 +00:00
Michael 4095e6c9be Pad the lengths of the columns 2021-06-14 05:33:47 +00:00
Michael a827f948c8 Reversed "null" 2021-06-14 05:14:09 +00:00
Michael 31db9dbef7 Added default value "NULL" 2021-06-14 05:08:01 +00:00
Michael 84ab5d6159 Updates database structure documentation 2021-06-13 20:33:50 +00:00
Hypolite Petovan da09215db8 [Database] Version 1333
- Exchange profile.pdesc for profile.about
2020-02-09 02:35:46 -05:00
Hypolite Petovan 8e2910976f Remove usage of profile.gender 2020-01-27 23:00:18 -05:00
Alexandre Alapetite d2901dcb00 Fix for MySQL 5.7+
https://github.com/friendica/friendica/issues/2786

Only tested on Ubuntu 16.10 with MySQL 5.7.17.

https://dev.mysql.com/doc/refman/8.0/en/timestamp-initialization.html

https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_no_zero_date
As of MySQL 5.7.4, NO_ZERO_DATE is deprecated.

Patch based on the following search & replace (and then reverting some
changes in libraries):

```sh
grep -l '= "0000-00-00"' -r . | xargs sed -i -e "s/= \"0000-00-00\"/=
'0000-00-00'/g"

grep -l "0000-00-00" -r . | xargs sed -i -e "s/0000-00-00/0001-01-01/g"

grep -l "!= '0001-01-01'" -r . | xargs sed -i -e "s/!= '0001-01-01'/>
'0001-01-01'/g"

grep -l " === '0001-01-01'" -r . | xargs sed -i -e "s/ === '0001-01-01'/
<= '0001-01-01'/g"

grep -l " == '0001-01-01'" -r . | xargs sed -i -e "s/ == '0001-01-01'/
<= '0001-01-01'/g"

grep -l "strpos(\$dob, '0000-') === 0" -r . | xargs sed -i -e
"s/strpos(\$dob, '0000-') === 0/strpos(\$dob, '0000-') === 0 ||
strpos(\$dob, '0001-') === 0/g"

grep -l 'array("", "0001-01-01")' -r . | xargs sed -i -e 's/array("",
"0001-01-01")/array("", "0000-00-00", "0001-01-01")/g'

grep -l "\$dob = '0000-'" -r . | xargs sed -i -e "s/\$dob =
'0000-'/\$dob = '0001-'/g"
```
2017-04-11 23:00:45 +02:00
rabuzarus 12f8b0630d docu - add schema of each db table 2015-12-28 02:50:25 +01:00