fabrixxm
|
57e6b8ac1a
|
Dev env: fix cache test data
|
2018-03-23 18:19:29 +01:00 |
fabrixxm
|
2e69bd95a0
|
update test data for dev env
|
2018-03-23 16:38:26 +01:00 |
Hypolite Petovan
|
4b361747a0
|
Update SQL scripts for cache table
|
2018-03-04 23:13:19 -05:00 |
Silke Meyer
|
236f53cec1
|
Replaced the test database for vagrant with a fresh one
|
2017-09-07 11:28:08 +02:00 |
Alexandre Alapetite
|
07faa14361
|
Merge branch 'develop' into utf8mb4
|
2017-04-16 22:08:48 +02:00 |
Alexandre Alapetite
|
a2a03c3f70
|
Default UTF8MB4 for CREATE DATABASE
|
2017-04-16 16:04:38 +02:00 |
Alexandre Alapetite
|
5d3bf9307f
|
More replaces UTF8 to UTF8MB4
|
2017-04-16 15:53:48 +02: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 |
Michael Vogel
|
5ab2786c00
|
Get rid of the table "unique_contacts"
|
2016-01-06 22:23:12 +01:00 |
Silke Meyer
|
4ad2859a4e
|
Added mysql dump with some test data. Not imported by default.
|
2015-02-02 22:58:08 +01:00 |