Michael
|
a29b7e7153
|
"dba" is now a static class
|
3 years ago |
Michael
|
c6ceae5225
|
The old database function is now replaced with a wrapper
|
3 years ago |
Michael
|
637eb0bfb4
|
Bugfix: Mails weren't sent
|
3 years ago |
Michael
|
5adfeb0bd5
|
App::get_baseurl is now replaced with System::baseUrl
|
3 years ago |
Michael
|
3c24bed412
|
New class "System"
|
3 years ago |
Michael
|
d810b21f87
|
New dba functions
|
3 years ago |
Michael
|
4a7ca0d44f
|
Fix crash with expiration, false logger constant, no empty postings
|
3 years ago |
Michael
|
2bad626be6
|
Bugfix: Signatures for likes hadn't been stored
|
3 years ago |
Michael
|
4515c36f69
|
Semaphore based locking and hopefully the fix for the workerqueue
|
3 years ago |
Michael
|
cf179188b6
|
Some more worker fine tuning
|
3 years ago |
Hypolite Petovan
|
ad4cdf2a9d
|
Replace lowercase operators
|
3 years ago |
Hypolite Petovan
|
9c0d2c31e8
|
Replace AND and OR in PHP conditions by && and ||
|
3 years ago |
Michael
|
71a5de40f1
|
The index mustn't be 192 characters long
|
3 years ago |
Michael
|
2ad784d37a
|
Speeded up calling "proc_run"
|
3 years ago |
Michael
|
32f61016d3
|
Overhauled "lock" functionality
|
3 years ago |
Michael
|
945d3cc048
|
The constant CURLE_OPERATION_TIMEDOUT isn't defined on older PHP versions
|
3 years ago |
Michael
|
21eb9a4b2e
|
Fixed locking behaviour for the worker
|
3 years ago |
Michael
|
104acec09c
|
The database structure is now checked ad the admin summary page
|
3 years ago |
Michael
|
696404739b
|
Bugfix Diaspora: We exited with the wrong return values and the guid for messages was too short
|
3 years ago |
Roland Haeder
|
f66c5c6823
|
added spaces + some curly braces + some usage of dbm::is_result()
Signed-off-by: Roland Haeder <roland@mxchange.org>
|
3 years ago |
Roland Haeder
|
701e761c68
|
added spaces + some curly braces + some usage of dbm::is_result()
Signed-off-by: Roland Haeder <roland@mxchange.org>
|
3 years ago |
Alexandre Alapetite
|
354531bfa6
|
Generate field_list only when needed
https://github.com/friendica/friendica/pull/3442/files#r115137722
|
3 years ago |
Alexandre Alapetite
|
f838430535
|
Fix GROUP BY in dbstructure
https://github.com/friendica/friendica/issues/3440
|
3 years ago |
Michael
|
7a3bdbfc15
|
Wrong parameter for delete command
|
3 years ago |
Michael
|
6a594ca8a9
|
Some useful unique indexes
|
3 years ago |
Hypolite Petovan
|
569cd459ec
|
Add basepath to App
|
3 years ago |
Hypolite Petovan
|
20043914e6
|
Move App to src
- Add `use Friendica\App;` wherever needed
|
3 years ago |
Hypolite Petovan
|
56ee734b00
|
Cleanup /format pre-move
|
3 years ago |
Michael
|
b9b43e30e6
|
Delete queries are now split into chunks.
|
3 years ago |
Michael
|
f1c53530a1
|
Add a missing relation
|
3 years ago |
Michael
|
c2820c452f
|
Delete now works
|
3 years ago |
Michael
|
44beb62e5a
|
Added information about table relations
|
3 years ago |
Michael
|
782783aa52
|
New function "dba::update" and changed unique index for the conversations
|
3 years ago |
Michael
|
35dc56c9c2
|
Salmons with Mastodon seem to work now
|
3 years ago |
Michael
|
45d73b106b
|
Conversation data is now stored in another table
|
3 years ago |
Michael
|
2628ff91f4
|
Call it "toinnodb"
|
3 years ago |
Michael
|
aaa558f7ea
|
New command in dbstructure.php to convert all tables from MyISAM to InnoDB
|
3 years ago |
Michael
|
c0784f7301
|
New tables for conversations
|
3 years ago |
Michael
|
fef0fe2fb9
|
Issue 3358: The key length should now work on InnoDB and MyISAM
|
3 years ago |
Roland Haeder
|
ec57babf89
|
added spaces + some curly braces + some usage of dbm::is_result()
Signed-off-by: Roland Haeder <roland@mxchange.org>
|
3 years ago |
Michael
|
2354cc243e
|
Issue 3358; Avoid key length problems when changing collation
|
3 years ago |
Michael
|
d80a09c9e5
|
Doxygen header added
|
3 years ago |
Michael
|
3e6f501bc0
|
Print out database error messages
|
3 years ago |
Michael
|
d7537e7346
|
We only need to define the collation.
|
3 years ago |
Michael
|
2930601719
|
it should work now
|
3 years ago |
Michael
|
fdcb6d3c6f
|
Issue 3326: We are now completely working with utf8mb4
|
3 years ago |
Alexandre Alapetite
|
325d3afe18
|
Bump DB version
|
3 years ago |
Alexandre Alapetite
|
b8e4094e7b
|
Allow negative contact.contat-type
https://github.com/friendica/friendica/issues/3328
|
3 years ago |
Alexandre Alapetite
|
3500190e41
|
Default to utf8mb4
https://github.com/friendica/friendica/issues/3324
|
3 years ago |
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"
```
|
3 years ago |