Michael
dcfde52e7f
The table "item-delivery-data" does not exist on newer systems
2020-08-22 05:22:08 +00:00
Philipp
16591077ac
Fix Database $_SERVER usage and remove old .travis files
2020-08-19 14:20:07 +02:00
Hypolite Petovan
24a82110fd
Add common relationship methods to Model\ContactRelation
...
- Introduce DBA::mergeConditions method
- Replace GContact relationship method contents with Model\ContactRelation method calls
2020-08-03 13:34:10 -04:00
Michael
0c73531da1
Poco and gcontact (mostly) removed
2020-08-01 16:15:18 +00:00
Hypolite Petovan
afb882048e
Generate callstack value from inside Profiler::saveTimestamp
...
- Save a massive amount of time computing callstacks when profiling is disabled
2020-07-27 02:33:05 -04:00
Michael Vogel
9f1d1db1ee
Database performance updates
2020-07-18 17:49:10 +02:00
Michael
b0086a49e2
in "getidforurl" "no update" is now "update"
2020-07-15 21:08:42 +00:00
Hypolite Petovan
d5acd5f96a
Add expected support for sort strings in select() parameters
...
- Fix unexpected behaviors with calls already using the sort strings
2020-07-01 22:54:14 -04:00
Hypolite Petovan
5cf5869b04
Add type hint to Database::insert
...
- Will escalate warning to fatal error in https://github.com/friendica/friendica/issues/8474#issuecomment-646802016
2020-06-24 09:36:34 -04:00
Hypolite Petovan
4dc68b32b5
Merge pull request #8772 from annando/post-update
...
Speed up post update for gsid
2020-06-14 14:57:10 -04:00
Michael Vogel
6b93a7e395
Speed up post update for gsid
2020-06-14 18:09:59 +02:00
Hypolite Petovan
8eeb7807d3
Replace remaining instances with "allowlist", "denylist" and "blocklist"
2020-06-07 11:24:56 -04:00
Hypolite Petovan
530ff51898
Rename system config value to db_log_index_denylist
2020-06-07 11:24:56 -04:00
Michael
7ac4a08e1b
Additional "is null" check in post update / create the "vid" if needed
2020-05-31 15:48:31 +00:00
Michael
4d23de997a
Updated postupdate function
2020-05-26 21:45:57 +00:00
Michael
95b4f35a12
Improved server detection / gsid introduced
2020-05-22 04:19:32 +00:00
Michael
ef3dc72dca
Ensure unified order of 'verb' records
2020-05-19 05:51:58 +00:00
Hypolite Petovan
90b1355555
Merge pull request #8649 from annando/annando/issue8550
...
Issue 8550: New experimental database configurations
2020-05-17 09:11:30 -04:00
Michael
7ace1049bb
Issue 8572: Ensure to log database errors
2020-05-17 10:56:19 +00:00
Michael
4d4678ceb6
New experimental database configurations
2020-05-17 09:03:56 +00:00
Michael
ecde6b0066
Issue 8635: Create foreign keys without constraint name
2020-05-16 20:57:04 +00:00
Michael
b8cf415f0d
Issue 8635 - Handle weird default values
...
This handles an issue that occured in #8635 (But will not fix the issue behind this)
2020-05-16 14:23:17 +00:00
Michael
28e7564d79
Added some more sql commands to the list
2020-05-16 10:21:16 +00:00
Michael
8e12edc375
Improved code
2020-05-16 10:04:09 +00:00
Michael
4faef126ff
Improved structure
2020-05-16 09:01:54 +00:00
Michael
4e1b1c0811
Issue 8635: Avoid concurrent database updates
...
Possibly helps with #8635
2020-05-16 08:15:51 +00:00
Michael
28e52f4db1
Fixed table name
2020-05-16 06:14:25 +00:00
Michael
14f814e6ba
Issue 8636: Check and fix data before foreign key creation
2020-05-16 06:12:28 +00:00
Michael
ec3290da3b
We already have got a function to check if a table exists
2020-05-15 18:32:53 +00:00
Michael
d70b77288d
Call the initial value check in the test
2020-05-15 18:08:06 +00:00
Michael
e333f45d0f
Ensure that the initial values are set
2020-05-15 17:49:07 +00:00
Michael
89b47afb09
Testmode added
2020-05-15 15:41:50 +00:00
Michael
d71c3e0812
Activate test mode for database
2020-05-15 15:05:17 +00:00
Michael
7a82171bfe
The "term" table is removed
2020-05-15 06:50:20 +00:00
Michael
faaf3d89e3
The next boolean
2020-05-11 19:07:18 +00:00
Michael
c5be1092d0
Use "quoteIdentifier"
2020-05-11 18:59:36 +00:00
Michael
a7f777ee43
DBStructure is now using "q(" nevermore
2020-05-10 20:23:58 +00:00
Michael
7f55e1b2bc
We now support real foreign keys
2020-05-10 14:55:03 +00:00
Michael
5fe6a2dfcd
We now store verbs in a new side table
2020-05-09 15:38:40 +00:00
Michael
0f042b064a
Fix warning, notice and DB Error
2020-05-05 21:49:48 +00:00
Hypolite Petovan
f7a45e4153
Merge pull request #8577 from annando/no-term2
...
File and category aren't using "term" anymore
2020-05-05 13:45:48 -04:00
Michael
7de6e60328
Merge remote-tracking branch 'upstream/develop' into issue-8550
2020-05-05 15:56:24 +00:00
Michael
5725784055
Update database definition, cleaned code
2020-05-05 15:47:35 +00:00
Michael
59675c4f0b
Merge remote-tracking branch 'upstream/develop' into no-term2
2020-05-05 15:44:24 +00:00
Michael
875d6b36e9
File and category aren't using "term" anymore
2020-05-03 15:13:40 +00:00
Michael
1a4beaf061
post update function added
2020-05-02 21:27:37 +00:00
Michael
6d4962a571
1,000 is better than 100
2020-04-30 12:13:13 +00:00
Michael
bb0d6ce6f6
Better check for finished conversion
2020-04-30 09:03:05 +00:00
Michael
88931e5053
Post update functionality for tags
2020-04-30 06:09:57 +00:00
Michael Vogel
e1d21e736a
Update src/Database/Database.php
...
Co-Authored-By: Hypolite Petovan <hypolite@mrpetovan.com>
2020-04-29 19:13:23 +02:00
Michael
6487daa4a9
Issue 8550: Check for a good table_definition cache value
2020-04-29 06:28:06 +00:00
Michael
70e5639e29
Merge
2020-04-28 13:33:03 +00:00
Michael
fd752be114
Issue 8546: Added option to not use prepared statements
2020-04-28 05:40:23 +00:00
Michael
6c59e03805
Renamed comment
2020-04-26 16:20:17 +00:00
Michael
51bc5279a0
Documentation and unneeded stuff removed
2020-04-25 18:36:58 +00:00
Michael
afa712b811
DBView is View
2020-04-24 08:48:34 +00:00
Michael
c3aa2730de
Improved definition style
2020-04-23 07:02:18 +00:00
Michael
63ebbb8a16
We now can define views
2020-04-23 06:19:44 +00:00
Michael
01c6179feb
Check for Antelope and convert to Barracuda
2020-04-01 18:11:06 +00:00
Hypolite Petovan
f047944b2d
Switch all item deletion logging to info level
2020-03-04 15:59:19 -05:00
Hypolite Petovan
b4597a643d
Add callstack context to cascade deletion debug logging
2020-03-04 10:30:55 -05:00
nupplaPhil
23c64b9a11
Add license info at Friendica classes
2020-02-09 15:45:36 +01:00
Hypolite Petovan
bac5159f6f
Clarify update.php doc and mention Database\PostUpdate
2020-01-20 07:47:53 -05:00
Hypolite Petovan
559879f41f
Enable Model lazy updating based on only the changed data
...
- Simplify update decision in Database
2020-01-20 07:32:48 -05:00
Hypolite Petovan
353dab166e
Rename PermissionSet::fetchIDForPost to PermissionSet::getIdFromACL
...
- Allow creating/retrieving a permission set id with arbitrary parameters
- Rename ACLformatter->sanitize to ACLFormatter->sanitizeItem
- Move PermissionSet::sortPermissions to ACLformatter->sanitize
2020-01-20 07:32:47 -05:00
nupplaPhil
ed9392469e
Remove unneeded Config namespace usages
2020-01-19 22:50:44 +01:00
nupplaPhil
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone
2020-01-19 22:23:44 +01:00
nupplaPhil
21640ec5d8
Add missing Friendica\DI namespace to files (PHPStorm inspection)
2020-01-19 21:26:42 +01:00
nupplaPhil
3411ced833
Move Config::set() to DI::config()->set()
2020-01-19 21:21:53 +01:00
nupplaPhil
6c36fd9e01
Move Config::get() to DI::config()->get()
2020-01-19 21:21:13 +01:00
nupplaPhil
174129af94
add missing namespaces/fix wrong class-names
2020-01-19 16:31:35 +01:00
nupplaPhil
d6efc90194
cleanup namespace usages for L10n
2020-01-19 16:31:33 +01:00
nupplaPhil
5dfee31108
Move L10n::t() calls to DI::l10n()->t() calls
2020-01-19 16:31:16 +01:00
Michael
845f71b7dd
Missing "*"
2020-01-19 10:10:53 +00:00
Michael
572a3f1180
And the rest of the new lines
2020-01-19 09:55:28 +00:00
Michael
0a4119adaf
@brief is removed completely
2020-01-19 06:05:23 +00:00
Michael
fd1f1999f0
Remove @brief in DBA.php
2020-01-18 20:33:20 +00:00
Hypolite Petovan
ef6e9ef26b
Add DBA::collapseCondition method
...
- Update Database->update for use with DBA::collapseCondition
2020-01-06 20:48:26 -05:00
Michael
20d570823d
Fix post update / clean up code
2020-01-05 10:16:01 +00:00
Michael
a4268a973f
Added post update
2020-01-05 09:10:32 +00:00
nupplaPhil
388b963714
Replace BaseObject class with DI::* calls
2019-12-29 20:17:38 +01:00
Hypolite Petovan
51ee24f652
Fix capitalization of table definition key in DBStructure
...
- Addresses https://github.com/friendica/friendica/issues/7998#issuecomment-569481865
2019-12-29 02:23:47 -05:00
Hypolite Petovan
9c9e07dbab
Add support for empty values array in Database\DBA
2019-12-24 16:21:00 -05:00
Hypolite Petovan
fd5b2d6af2
Fix wrong type-hints for table parameter in Database->selectToArray and DBA::selectToArray
2019-12-16 08:49:01 -05:00
Hypolite Petovan
5dcf6bfc58
Remove extra spaces before closing parentheses in src/
2019-10-16 08:58:09 -04:00
Hypolite Petovan
146646c4d4
Replace deprecated calls to defaults() by ?? and ?: in src/
2019-10-16 08:38:52 -04:00
Hypolite Petovan
185f1fc687
Merge pull request #7636 from annando/manage
...
Restructured "manage" functionality, added count parameters
2019-09-30 11:12:46 -04:00
Philipp Holzer
d5dd12b8f8
Add Drone CI
...
- Add drone test environment
- Add drone config
- apt phpunit
- Fix api.php
- Fix item.php
- Fix DBStructure
- Check if caching is possible during tests
2019-09-30 14:03:12 +02:00
Michael
d41399496e
Merge remote-tracking branch 'upstream/develop' into manage
2019-09-30 06:30:13 +00:00
Philipp Holzer
ca36ea17f9
Fix Auto-Installer
2019-09-23 12:51:07 +02:00
Michael
8237d35a87
Restructured "manage" functionality, added count parameters
2019-09-17 04:05:26 +00:00
Michael Vogel
3b92f7357c
Renamed function
2019-08-30 07:52:21 +02:00
Michael Vogel
438394bc1d
Type hints, corrected wrong documentation
2019-08-30 07:38:42 +02:00
Michael Vogel
66eab2b44f
Don't handle deleted contacts / removed unneeded parameter
2019-08-29 07:22:29 +02:00
Michael Vogel
503a5be06c
Fixed query (not all duplicates had been found)
2019-08-29 06:55:36 +02:00
Michael Vogel
141bcf149d
Added post update to remove duplicated contacts
2019-08-29 06:06:41 +02:00
Philipp Holzer
4b4dbd38d9
Fixing PHP Fatal Error for Database-Reconnects with PDO
2019-08-28 01:40:34 +02:00
Hypolite Petovan
0e0fff3324
Correctly escape identifier names
...
- Add support for schema, multiple tables in $table parameters
- Remove Database->formatTableName method
2019-07-29 00:23:40 -04:00
Hypolite Petovan
a61ce4fed0
Ensure *toArray returns an array
2019-07-28 00:03:42 -04:00
Philipp Holzer
51d2db3998
merge DBA::selectToArray
2019-07-27 23:57:38 +02:00