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
..
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:12:54 +11:00
2017-04-08 16:57:24 +02:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:12:54 +11:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-26 19:06:22 -04:00
2017-01-09 23:12:54 +11:00
2017-04-08 16:57:24 +02:00
2017-01-09 23:12:54 +11:00
2017-03-21 12:02:59 -04:00
2017-03-26 05:29:24 +00:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:12:54 +11:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-04-01 22:16:08 +02:00
2017-04-01 22:16:08 +02:00
2017-03-21 12:02:59 -04:00
2017-04-08 16:57:24 +02:00
2017-03-21 12:02:59 -04:00
2017-03-22 07:11:58 +00:00
2017-01-30 15:23:44 +01:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-01-15 15:06:32 +00:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:12:54 +11:00
2017-04-08 16:57:24 +02:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-04-08 16:57:24 +02:00
2017-01-09 23:12:54 +11:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-04-11 23:00:45 +02:00
2017-03-21 12:02:59 -04:00
2017-04-01 22:16:08 +02:00
2017-03-21 12:02:59 -04:00
2017-04-01 22:12:53 +02:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-19 19:03:09 +00:00
2017-03-25 13:15:42 +01:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:25 +11:00
2017-04-04 05:39:43 +00:00
2017-03-21 12:02:59 -04:00
2017-03-26 13:12:02 +00:00
2017-01-09 23:14:25 +11:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:25 +11:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:25 +11:00
2017-01-09 23:14:25 +11:00
2017-01-12 07:25:44 +00:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:25 +11:00
2017-01-09 23:14:25 +11:00
2017-01-15 15:18:31 +00:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-04-08 16:57:24 +02:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-04-09 04:29:02 +00:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-04-11 23:00:45 +02:00
2017-03-21 12:02:59 -04:00
2016-12-22 09:14:14 +01:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:55 +11:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-04-08 16:57:24 +02:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:55 +11:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:55 +11:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:55 +11:00
2017-04-08 23:17:31 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:55 +11:00
2017-01-09 23:14:55 +11:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:55 +11:00
2017-03-21 12:02:59 -04:00
2017-01-09 23:14:55 +11:00
2017-01-09 23:14:55 +11:00
2017-04-08 16:57:24 +02:00
2017-01-12 07:25:44 +00:00
2017-01-09 23:14:55 +11:00
2017-01-09 23:14:55 +11:00
2017-01-09 23:14:55 +11:00
2017-01-09 23:14:55 +11:00
2017-01-09 23:14:55 +11:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-21 12:02:59 -04:00
2017-03-25 21:07:12 +01:00
2017-03-21 12:02:59 -04:00
2017-04-09 04:29:02 +00:00
2017-02-26 23:16:49 +00:00
2017-03-21 12:02:59 -04:00