Commit graph

170 commits

Author SHA1 Message Date
Hypolite Petovan
457cec3e0d Merge pull request #3321 from Alkarex/MySQL5.7
Fix for MySQL 5.7+ NO_ZERO_DATE
2017-04-16 16:03:13 -04:00
Michael
d80a09c9e5 Doxygen header added 2017-04-16 13:37:42 +00:00
Michael
3e6f501bc0 Print out database error messages 2017-04-16 13:21:49 +00:00
Alexandre Alapetite
6b250d3ae9 Merge branch 'develop' into MySQL5.7 2017-04-16 15:16:58 +02:00
Michael
e7783e2018 Merge remote-tracking branch 'upstream/develop' into issue-3326 2017-04-14 22:30:48 +00:00
Michael
d7537e7346 We only need to define the collation. 2017-04-14 12:22:36 +00:00
Michael
2930601719 it should work now 2017-04-14 11:26:47 +00:00
Michael
fdcb6d3c6f Issue 3326: We are now completely working with utf8mb4 2017-04-14 07:58:56 +00:00
Alexandre Alapetite
325d3afe18 Bump DB version 2017-04-12 23:14:33 +02:00
Alexandre Alapetite
b8e4094e7b Allow negative contact.contat-type
https://github.com/friendica/friendica/issues/3328
2017-04-12 23:09:22 +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
Hypolite Petovan
7b352f3f74 Revert "Coding convention applied - part 1" 2017-03-21 12:02:59 -04:00
Roland Haeder
09851331a9
Merge remote-tracking branch 'upstream/develop' into rewrites/coding-convention
Signed-off-by: Roland Haeder <roland@mxchange.org>
2017-03-20 20:51:32 +01:00
Michael
b42a977894 Bugfix for issue 3242 - forgotten "use" 2017-03-19 22:58:35 +00:00
Hypolite Petovan
65f809f5cb Merge pull request #3245 from annando/issue-3242
Issue 3242: Define a maintenance reason
2017-03-19 11:06:25 -04:00
Michael
8dd732a896 Issue 3242: Define a maintenance reason 2017-03-19 13:24:07 +00:00
Roland Häder
951006dd10
more spaces + some curly spaces added
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:51:54 +01:00
Roland Häder
41a36606c6
added spaces + some curly braces
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:50:19 +01:00
Michael
e301fa0832 Merge remote-tracking branch 'upstream/develop' into 1702-null-date 2017-03-18 08:31:43 +00:00
Michael
4812f4c0f9 Without only the worker queue we don't need the deliverq anymore. 2017-03-16 07:30:59 +00:00
Michael
1624150db4 Merge remote-tracking branch 'upstream/develop' into 1702-null-date
Conflicts:
	include/onepoll.php
2017-03-12 20:54:28 +00:00
Michael
5c92e97173 Added index for performance issues 2017-03-02 05:46:44 +00:00
Michael
0afb0c2ea4 NULL_DATE is now a constant 2017-02-27 23:37:15 +00:00
Michael
6bd59cd094 Bugfix: "ALTER IGNORE" was missing on structure and index change 2017-02-26 08:36:05 +00:00
Michael
8a75a20d26 Bugfix: An index was missing 2017-02-01 21:08:13 +00:00
Michael
7ca809a00e Addind unique indexes should now work with every MySQL flavour 2017-01-29 17:31:20 +00:00
Michael
850419dd14 Hopefully better index length. 2017-01-20 13:30:06 +00:00
Michael
0548099f6c The config class now makes less database reads. 2017-01-18 21:45:32 +00:00
Michael
79866f620a OOpppss ... 2017-01-16 22:15:04 +00:00
Michael
6972faa3a8 Redo some work 2017-01-16 22:11:35 +00:00
Michael
2cdf87c56a Deactivated the alternative update script by now 2017-01-16 21:35:35 +00:00
Michael
ced7cb6828 Smarter way to create unique indexes 2017-01-15 23:30:43 +00:00
Michael
021a4fad71 Some more database stuff 2017-01-15 12:36:06 +00:00
Michael
e16afc0450 Some more changed indexes and improved queries 2017-01-14 21:36:34 +00:00
Michael
85397f3bb9 Some removed indexes 2017-01-14 00:49:41 +00:00
Michael
29ef8d29ce Better usage of text and mediumtext. 2017-01-13 22:13:52 +00:00
Michael
fd5f151a72 New function to detect heavily used indexes 2017-01-13 07:46:47 +00:00
Michael
28b2e599fb it should be "gid" not "cid" 2017-01-08 20:11:15 +00:00
Michael
c2543f918b Last minutes changes 2017-01-07 13:52:30 +00:00
Michael
ff3728be47 Cleaning up the stuff 2017-01-05 22:51:31 +00:00
Michael
2deb2b637b Some new indexes and some removed. 2017-01-05 22:23:00 +00:00
Michael
6cdccbe2f6 Will we now find the best index fort the contact? 2017-01-05 17:48:51 +00:00
Michael
7aaf91a620 Removing and adding some indexes 2017-01-05 13:16:27 +00:00
Michael
9c7a2d2f9a Another index 2017-01-05 09:32:16 +00:00
Michael
a4e437b56f Contact testing 2017-01-05 09:10:02 +00:00
Michael
a92c5f464d Hopefully this it it ... 2017-01-05 08:02:21 +00:00
Michael
db1c6c06d6 Finding the best index ... 2017-01-05 07:30:10 +00:00
Michael
00d7835ba6 Some more contact indexes 2017-01-05 07:12:13 +00:00
Michael
cefb36fb67 Some more indexes on the contact table 2017-01-04 23:28:51 +00:00
Michael
c221376041 Some notification thingy 2017-01-04 23:12:28 +00:00