Jeroen De Meerleer
6a04ba4014
Some more code review
2019-01-21 09:12:38 -05:00
Jeroen De Meerleer
ff180fb0f1
Updated towards code review
2019-01-21 09:12:38 -05:00
Hypolite Petovan
acaee626f5
Remove include/ requires that are now done directly from Composer
2018-12-24 09:56:25 -05:00
Hypolite Petovan
6eb6cc94c7
Move config/dbstructure.php to config/dbstructure.config.php
2018-11-25 01:14:44 -05:00
Philipp Holzer
270e817954
Adding force to update routine
...
- Introduced Cache::NEVER Lock (never expiring lock)
- Force flag for dbstructure update
- Moving the business logic to central place in Update class
2018-10-31 14:44:40 +01:00
Philipp Holzer
87f3fe24f7
Moving UPDATE defines/constants out of boot
2018-10-31 14:44:23 +01:00
Hypolite Petovan
19ffc0510b
Move DB_UPDATE_VERSION from boot.php to config/dbstructure.php
2018-10-22 16:50:55 -04:00
Hypolite Petovan
fad99b8619
Switch from dbstructure.json to dbstructure.php
2018-10-22 16:50:55 -04:00
Michael
62ad755980
Use "uri-id" for item relations
2018-10-17 18:34:24 +00:00
Michael Vogel
489d3daa94
Trying to clean up a little bit more ( #5517 )
...
* "post-type" replaces "bookmark" and "type"
* The permission set is now removed upon expiry
* Post update now stores the permission set
* We don't store the permissions in the item table anymore
* Postupdate now handles "postopts" as well
* "post-type" replaces "bookmark" and "type"
* "post-type" replaces "bookmark" and "type"
* "post-type" replaces "bookmark" and "type"
* The permission set is now removed upon expiry
* The permission set is now removed upon expiry
* We don't store the permissions in the item table anymore
* Postupdate now handles "postopts" as well
* Multiplicated update functions
* And some more duplicated functions ...
* Removed duplicate functions
2018-07-28 16:04:56 -04:00
Michael Vogel
36d4516e7a
Missing stuff in "develop"? ( #5516 )
...
* "post-type" replaces "bookmark" and "type"
* Removed some more type
* Added index to permission set
* The permission set is now stored
* The permission set is now removed upon expiry
* Post update now stores the permission set
* New file
* Permissions are now sorted
* The permission set is now used for item permissions
* Check for allow_cid, ... is superfluous. Checking for "private" is enough
* We query the permissionset
* Permissions are displayed correctly
* Changed index
* We don't store the permissions in the item table anymore
* Permission fields are now deprecated
* Reversed ...
* Postupdate now handles "postopts" as well
* Set deprecated fields to "null" if empty
* Postupdates are enabled again
* "post-type" replaces "bookmark" and "type"
* The permission set is now stored
* The permission set is now removed upon expiry
* Postupdate now handles "postopts" as well
2018-07-28 13:11:46 -04:00
Roland Häder
4a22710b3b
Moved global PAGE_* to Profile class ( #5500 )
...
* Rewrites:
- moved PAGE_* to Friendica\Model\Profile class
* Fixed more rewrites from plain (global namespace) PAGE_* to Friendica\Models\Profile class
* CR request:
- moved all PAGE_* constants to Friendica\Model\Contact class
- fixed all references of both classes
* CR request:
- moved ACCOUNT_TYPE_* constants from boot.php to Contact::ACCOUNT_TYPE_*
* Just copy-pasted this code from boot.php, needs to be changed to `const ACCOUNT_TYPE_FOO = x;`
* Ops, melting brain cells here ... :-/
2018-07-27 19:25:57 -04:00
Michael Vogel
5f77e98d76
Postupdate is now working again ( #5512 )
...
* "post-type" replaces "bookmark" and "type"
* Removed some more type
* Added index to permission set
* The permission set is now stored
* The permission set is now removed upon expiry
* Post update now stores the permission set
* New file
* Permissions are now sorted
* The permission set is now used for item permissions
* Check for allow_cid, ... is superfluous. Checking for "private" is enough
* We query the permissionset
* Permissions are displayed correctly
* Changed index
* We don't store the permissions in the item table anymore
* Permission fields are now deprecated
* Reversed ...
* Postupdate now handles "postopts" as well
* Set deprecated fields to "null" if empty
* Postupdates are enabled again
2018-07-27 19:24:26 -04:00
Hypolite Petovan
a6fb3568f9
Rename dbesc to DBA::escape
2018-07-23 15:30:54 -04:00
Hypolite Petovan
ecea7425f8
Rename DBA::is_result to DBA::isResult
2018-07-23 11:04:14 -04:00
Hypolite Petovan
0ec44f3e8a
Rename DBM method calls to DBA method calls
2018-07-23 11:02:24 -04:00
Hypolite Petovan
8ddb94ef06
Use DateTimeFormat::utc() instead of DBM::date()
2018-07-23 10:57:47 -04:00
Michael Vogel
4bbcb61a9e
We now have a pre update script ( #5425 )
...
* We now have a pre update script
* Some optimized stuff
2018-07-20 15:47:16 -04:00
Hypolite Petovan
af6dbc654f
Rename Friendica\Database\dba to Friendica\Database\DBA
2018-07-20 08:19:26 -04:00
Hypolite Petovan
daa1177e3a
Update use statement lists with new Friendica\Database\dba class
...
- Remove unused use statement
- Remove superfluous use statements (classes in the same namespace)
- Add missing use statements
2018-07-19 22:15:21 -04:00
Michael Vogel
5af9596dde
New item field "Post-type" and new table "permissionset" ( #5408 )
...
* "post-type" replaces "bookmark" and "type"
* Removed some more type
* Added index to permission set
* The permission set is now stored
* The permission set is now removed upon expiry
* Post update now stores the permission set
* New file
* Permissions are now sorted
* Changed documentation
2018-07-19 09:52:05 -04:00
Michael
aafc314ccc
Corrects falsely blocked contacts because of some bug in the develop branch
2018-05-10 10:41:32 +00:00
Michael
df96d81a0e
Ensure avatar photo in update routine
2018-05-09 07:09:47 +00:00
Michael
450863da85
Fixes missing L10n class
2018-05-08 22:34:47 +00:00
Michael
74908c0125
Corrected placeholders
2018-05-08 20:22:21 +00:00
Michael
e7e0bee0a9
Added maintenance notice
2018-05-08 18:46:47 +00:00
Michael
6c35f8ebf3
Update script for setting author-id and owner-id in item and thread table
2018-05-08 17:50:06 +00:00
Hypolite Petovan
d6bdaeaffe
Add update function to reload addons after hook renaming
2018-01-23 18:57:51 -05:00
Michael
18ad2fb96d
When RINO is set to a (now) invalid value, we set it to a valid one
2018-01-22 22:58:03 +00:00
Hypolite Petovan
2bfd9f9d87
Add database update function to use new hashes
2018-01-20 22:37:13 -05:00
Adam Magness
b86b04a81a
Change plugin to addon
...
change the use of plugin to addon where appropriate.
2018-01-20 07:48:22 -05:00
Adam Magness
6c4c567319
Remove require
...
remove require_once for plugins.php
2018-01-20 07:48:22 -05:00
Adam Magness
11cf36105c
Update Addon functions and calls
...
Update function names and calls for Addon class.
2018-01-20 07:48:22 -05:00
Hypolite Petovan
e36f2bb1fb
Use short form array syntax everywhere
...
- Add short form array syntax to po2php.php generation
2018-01-15 14:07:17 -05:00
Michael
3fdfc2e425
Hopefully this is now clearer
2017-12-22 21:31:32 +00:00
Michael
a614b17ed5
Grammar correction
2017-12-22 20:06:15 +00:00
Michael
1e7e83510a
Old stuff had been removed from the update routine
2017-12-22 14:48:29 +00:00
Michael
dab83c8b40
We now fetch the number of registered users
2017-12-18 23:58:18 +00:00
Hypolite Petovan
6dbd68e0cb
Remove redundant index
...
- Increase UPDATE_VERSION and DB_UPDATE_VERSION
2017-12-15 11:36:06 -05:00
Michael
15d42de647
Class moved, changes applied
2017-12-14 21:13:02 +00:00
Hypolite Petovan
3fc3e67b70
Separate Object\Photo into Model\Photo and Object\Image
...
- Renamed a bunch of functions to shorter or clearer names
2017-12-07 23:54:51 -05:00
Michael Vogel
5747cfc79c
Revert "Move Objects to Model"
2017-12-08 05:21:51 +01:00
Hypolite Petovan
52bddd580c
Separate Object\Photo into Model\Photo and Object\Image
...
- Renamed a bunch of functions to shorter or clearer names
2017-12-07 08:56:11 -05:00
Michael
9ffde01fc1
DBClean now works with the conversation table as well
2017-12-05 21:30:38 +00:00
Michael
6f7510550d
NETWORK_MAIL2 was never finished, so remove it as well
2017-12-03 09:19:58 +00:00
Michael
adf802474b
Zot was never really supported, so it is now removed completely
2017-12-02 21:57:39 +00:00
Adam Magness
0091d318e5
Function names
...
Update function names and corresponding function calls
2017-11-29 12:17:12 -05:00
Adam Magness
54827e7fed
Photo to src
...
Move Photo to Friendica\Object namespace and replace require_once statments with use statements.
2017-11-29 07:52:27 -05:00
Hypolite Petovan
d38c040d50
Update random_string with random_bytes
...
- Updated update.php
2017-11-25 21:15:50 -05:00
Michael
0aee6d383a
Now there are four more ...
2017-11-15 21:12:33 +00:00
Adam Magness
4ca68c7af0
Class file relocations
...
Issue #3878
2017-11-08 08:37:03 -05:00
Adam Magness
b995e858e6
Review changes
...
Replacements for ::delete() as well as changes to include use statements.
2017-11-07 09:12:01 -05:00
Adam Magness
0dfa57948f
Issue-#3873
...
Replace deprecated functions with new syntax.
2017-11-07 06:24:39 -05:00
Michael
478e363967
proc_run was replaced
2017-11-05 12:15:53 +00:00
Michael
6396f92d9b
Bugfix for "Index column size too large"
2017-10-25 04:44:45 +00:00
Michael
d691c2e621
Database structure call is now executed directly when it cannot be called via proc_run
2017-09-30 16:45:35 +00:00
Michael
b3e20b1685
New database version
2017-08-14 05:49:49 +00:00
Michael
2bad626be6
Bugfix: Signatures for likes hadn't been stored
2017-07-15 04:03:50 +00:00
Michael
526db18f5c
Hopefully a fix for semaphore warnings and for the missing field in the workerqueue
2017-06-28 18:31:33 +00:00
Michael
4515c36f69
Semaphore based locking and hopefully the fix for the workerqueue
2017-06-28 04:53:11 +00:00
Michael
cf179188b6
Some more worker fine tuning
2017-06-17 13:58:18 +00:00
Hypolite Petovan
2281989866
Replace && by AND in SQL queries
2017-06-07 22:01:14 -04:00
Hypolite Petovan
9c0d2c31e8
Replace AND and OR in PHP conditions by && and ||
2017-06-07 22:00:59 -04:00
Michael
504ceb2d43
We should increase the database version number
2017-06-07 20:24:44 +00:00
Michael
8d13751d40
Increased database version
2017-06-06 12:07:27 +00:00
Michael
945d3cc048
The constant CURLE_OPERATION_TIMEDOUT isn't defined on older PHP versions
2017-06-03 19:46:19 +00:00
Michael
21eb9a4b2e
Fixed locking behaviour for the worker
2017-06-03 07:25:01 +00:00
Michael
696404739b
Bugfix Diaspora: We exited with the wrong return values and the guid for messages was too short
2017-05-17 19:25:30 +00:00
Michael
7a3bdbfc15
Wrong parameter for delete command
2017-05-07 08:12:36 +00:00
Michael
6a594ca8a9
Some useful unique indexes
2017-05-05 21:55:19 +00:00
Michael
b9b43e30e6
Delete queries are now split into chunks.
2017-05-01 17:42:37 +00:00
Michael
15355850f7
Set the database version
2017-04-27 20:47:52 +00:00
Michael
fef0fe2fb9
Issue 3358: The key length should now work on InnoDB and MyISAM
2017-04-21 21:26:05 +00:00
Alexandre Alapetite
62768a1bb4
Bump version to 1219
...
https://github.com/friendica/friendica/pull/3321#pullrequestreview-32528437
2017-04-16 15:23:57 +02:00
Michael
358aa1d7ef
Database version updated
2017-04-14 22:34:01 +00:00
Alexandre Alapetite
92361a0209
Bump update version
2017-04-12 23:20:10 +02:00
Roland Häder
a410f86e9c
Continued with #3254 :
...
- added curly braces + spaces
- converted multiple single-line comments to one multi-line comment
Signed-off-by: Roland Haeder <roland@mxchange.org>
2017-03-23 23:08:40 +01:00
Roland Häder
f173322539
added missing spaces/curly braces
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-21 21:52:00 +01:00
Roland Häder
830af774d3
added more curly braces + a bit more usage of dbm::is_result()
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-21 21:50:45 +01:00
Hypolite Petovan
7b352f3f74
Revert "Coding convention applied - part 1"
2017-03-21 12:02:59 -04:00
Roland Häder
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
Roland Häder
46a031368a
old-lost update way, no need for TODO around.
...
Signed-off-by: Roland Haeder <roland@mxchange.org>
2017-03-19 01:03:14 +01:00
Roland Häder
8d5e66a61a
removed MyISAM ...
...
Signed-off-by: Roland Haeder <roland@mxchange.org>
2017-03-19 01:02:01 +01:00
Roland Häder
1e3b443245
added more spaces/curly braces
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:52:02 +01:00
Roland Häder
a4fea38c38
unified most db upgrades:
...
- common way is to check on result ($r mostly) of db upgrade
- on success, return UPDATE_SUCCESS
- on failure, return UPDATE_FAILED
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:52:02 +01:00
Roland Häder
15c77beee2
added missing spaces/curly braces
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:41:21 +01:00
Roland Häder
3849e7c9ff
added more curly braces + a bit more usage of dbm::is_result()
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:40:47 +01:00
Roland Häder
55e2411f07
even more added
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:40:21 +01:00
Roland Häder
108a2ccbd5
added more spaces/curly braces
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:40:21 +01:00
Roland Häder
4adf74b06c
more coding convention applied
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:40:21 +01:00
Roland Häder
0b6336edb0
unified most db upgrades:
...
- common way is to check on result ($r mostly) of db upgrade
- on success, return UPDATE_SUCCESS
- on failure, return UPDATE_FAILED
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:40:21 +01:00
Michael
222550e784
From now on we are using 0001-01-01 as lowest date
2017-03-18 11:42:54 +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
8a75a20d26
Bugfix: An index was missing
2017-02-01 21:08:13 +00:00
Michael
2cdf87c56a
Deactivated the alternative update script by now
2017-01-16 21:35:35 +00:00
Michael
58c229031e
Now for the database version
2017-01-05 22:56:49 +00:00
Michael
55ee80338f
Events are now shared with Diaspora.
2016-12-30 03:31:38 +00:00
Michael
38fed9a77b
We should increase the database version as well ...
2016-12-26 06:02:14 +00:00