1
0
Fork 0
Commit graph

18 commits

Author SHA1 Message Date
84666a314a Rearranged fields 2021-09-13 08:22:11 +00:00
0a01f0443e Deprecated fields 2021-09-12 20:50:03 +00:00
bee04f86ee Matrix addresses can be entered in the profile 2021-08-09 01:39:09 +00:00
3a5523820c Legacy DFRN transport layer is removed 2021-07-15 13:28:32 +00:00
901c3f4855 we now have got an uri-id field for the contact table 2021-07-08 18:59:58 +00:00
fe07dc828b Fix noscrape publishing and pulling, added header 2021-06-17 11:23:32 +00:00
7106106f11 Formatted index list 2021-06-14 12:15:10 +00:00
3d74d0a49c Updated documentation 2021-06-14 08:54:57 +00:00
96f07c7288 Indexes and foreign keys added 2021-06-14 08:53:37 +00:00
2cd0c1d30d Trailing whitespace removed 2021-06-14 06:10:11 +00:00
fd30df7300 Pad the header 2021-06-14 05:58:51 +00:00
4095e6c9be Pad the lengths of the columns 2021-06-14 05:33:47 +00:00
a827f948c8 Reversed "null" 2021-06-14 05:14:09 +00:00
31db9dbef7 Added default value "NULL" 2021-06-14 05:08:01 +00:00
84ab5d6159 Updates database structure documentation 2021-06-13 20:33:50 +00:00
34463f37e4 Rename contact table column to ffi_keyword_denylist 2020-06-07 11:24:52 -04: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