fd30df7300
Pad the header
2021-06-14 05:58:51 +00:00
4095e6c9be
Pad the lengths of the columns
2021-06-14 05:33:47 +00:00
a827f948c8
Reversed "null"
2021-06-14 05:14:09 +00:00
31db9dbef7
Added default value "NULL"
2021-06-14 05:08:01 +00:00
bb5e6d248b
Added sort order
2021-06-13 20:56:14 +00:00
84ab5d6159
Updates database structure documentation
2021-06-13 20:33:50 +00:00
Simon Rupf
8b841ccc51
Reduce batch size for photo processing to reduce memory usage
2021-06-12 20:40:17 +02:00
4d4544ada3
Separate the char from the binary handling
2021-05-24 20:07:39 +00:00
da8d5f5015
Issue 9926: Limit the length of data to store in the apcontact table
2021-05-24 19:44:24 +00:00
4f5d2e7d36
Avoid empty basepath when loading database structure
2021-04-19 19:42:57 +00:00
f70650f824
Further unused tables to be dropped
2021-04-07 12:10:54 +00:00
Balázs Úr
054c301ef0
Update copyright
2021-03-29 08:40:20 +02:00
2072fb1eed
Avoid foreign key violations when deleting unused tables
2021-03-24 19:47:55 +00:00
f24deebc7f
Merge pull request #9981 from annando/issue-9977
...
Issue 9977: Check for existance of the "item" table on postupdate
2021-03-04 10:21:06 +01:00
bd7e5b69c1
Issue 9975: Remove unused views
2021-03-04 00:02:34 +00:00
b029e78212
Issue 9977: Check for the existance of the "item" table on postupdate
2021-03-04 00:00:24 +00:00
99a145f7cf
Fixes several database errors, removes "relation" handling
2021-02-25 05:13:49 +00:00
10f7280bbc
Fetch a given number of posts
2021-02-21 07:46:58 +00:00
c247d5fbeb
The item table is now completely removed
2021-02-19 06:30:38 +00:00
1afc076831
Set the post update version
2021-02-15 22:22:34 +00:00
896e58347d
Post update function to set the "external-id"
2021-02-14 21:57:02 +00:00
36357e790e
"id" is now post-user-id
2021-02-14 18:33:15 +00:00
ab5a447bc2
The "thread" table isn't used anymore
2021-02-08 07:48:36 +00:00
8f27715d8b
"item" is replaced whenever possible at the moment
2021-02-06 13:42:21 +00:00
e561cad844
"participation" is removed since it is unused
2021-02-02 06:28:51 +00:00
5a2c5da81d
Added "user-item" table to the list of removable tables
2021-02-02 06:10:10 +00:00
df24c0daeb
User-Item table is replaced
2021-02-02 05:45:57 +00:00
c3398511b4
New table "post-content"
2021-01-30 22:03:53 +00:00
8eb3bddc2a
Reduce the parameter chaos by splitting the update function
2021-01-30 13:31:59 +00:00
90f1175cf5
Setting "maintenance" for pre and post updates
2021-01-30 07:50:20 +00:00
4157db5473
"item" is replaced by "post-view" / postupdate check added
2021-01-17 20:32:13 +00:00
81ffe38f2e
The highest post update version number is 1385
2021-01-07 22:12:53 +00:00
7f56e2e7a9
Improve photo loading speed
2020-12-26 18:51:36 +00:00
c8476f6838
Merge pull request #9687 from annando/drop-unused
...
Drop unused friendica tables
2020-12-20 19:11:45 -05:00
6ebd023c4e
Drop unused friendica tables
2020-12-20 14:01:46 +00:00
d755bbae8f
Remove unneeded configutation
2020-12-20 08:56:32 +00:00
92679de225
Remove orphaned avatar photo entries
2020-12-19 22:07:08 +00:00
99b200868b
Normalize return value in Database->fetch
...
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-741857058
2020-12-10 06:12:10 -05:00
bd4dc10588
Ensure that the database.sql contains "if exists"
2020-12-02 08:50:45 +00:00
Michael Vogel
eb48a36061
Update src/Database/View.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-11-29 21:59:24 +01:00
7e6a9bd893
Ensure that a view is a view and not a table
2020-11-29 19:06:43 +00:00
bd9f36622e
Cast field data when ATTR_EMULATE_PREPARES is enabled
2020-11-27 11:24:31 +00:00
23bc725ce9
Fix: Only echo on verbose
2020-11-23 19:47:30 +00:00
61ff99c410
Command line option to check initial values
2020-11-23 18:58:18 +00:00
303aaa00ca
Mode switch for insert
2020-11-19 19:34:48 +00:00
3af5f6b8ee
Some more foreign keys added
2020-11-19 06:26:30 +00:00
f36ecdf6bf
Replacing deprecated log calls
2020-11-18 09:14:12 +00:00
4f7d42a0d3
Fixed copy&paste error
2020-11-18 05:55:15 +00:00
b09ffa0697
Relocate system user creation
2020-11-18 05:33:17 +00:00
d7fa58d81c
Ensure to never delete the "0" user
2020-11-18 05:24:04 +00:00
81a03b137b
Test: only insert empty user
2020-11-18 05:04:17 +00:00
1e9d3342a3
Changed order of inserts
2020-11-18 00:13:39 +00:00
317921e51c
Changed order
2020-11-17 23:45:16 +00:00
eaa58da25b
New table "post-user" and more foreign keys
2020-11-17 22:33:44 +00:00
eb8caaa5e7
Restore the connection check
2020-11-07 11:44:39 +00:00
8906615b2c
Test if PDO doesn't work on the tests
2020-11-07 10:27:22 +00:00
84924d1c05
Test the tes
2020-11-07 10:12:31 +00:00
d6a1a836f1
Simplified connection test
2020-11-07 09:58:20 +00:00
3a5cdecb62
New function to fetch the database driver
2020-11-07 09:02:02 +00:00
f405336680
Avoid duplicate item entries
2020-10-23 19:10:17 +00:00
d55ecb9288
Fix a lot of notices/warnings/deprecation notes in the test directory
2020-10-18 20:52:27 +02:00
ae6b380362
Merge pull request #9373 from nupplaphil/task/server_env
...
Introduce possibility for mapping $_SERVER variables to config-cache values
2020-10-08 15:00:31 -04:00
Philipp
2a464a156f
Update src/Database/Database.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-10-06 20:55:36 +02:00
d39ee428f0
Introduce "static/env.config.php" for environment variable mapping to config cache entries
...
- Added new database.port config value (used for MYSQL_PORT)
- Removed now obsolete db environment variable functionality
- Added functionality to load env variables (overwrites DB based cached)
2020-10-06 20:43:29 +02:00
3587e89482
Introduce a "DatabaseException" class for fatal exceptions (used in testmode to throw an exception in case of DB errors)
2020-10-06 20:03:38 +02:00
f096b8c879
Merge pull request #9362 from annando/post-update-term
...
Postupdate: Check for existence of the "term" table
2020-10-05 06:35:47 +02:00
cb5a9ae286
Issue 9363: Display the latest post update version
2020-10-04 20:46:42 +00:00
36b06ee2a1
Postupdate: Check for existence of the "term" table
2020-10-04 19:20:18 +00:00
50b5483ee1
Ability to set the database version
2020-09-13 15:57:24 +00:00
90315e3434
Don't perform actions on empty conditions
2020-09-07 05:00:17 +00:00
4852458645
Simplify the code / check number of parameters in mergeConditions
2020-09-06 20:28:08 +00:00
44ee4a54b4
Replace "insert" with "replace"
2020-08-27 21:35:08 +00:00
dfea3ee3d6
Configuration if the database is opened with persistent connections
2020-08-27 10:59:14 +00:00
Michael Vogel
e715458005
Update src/Database/Database.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-08-26 22:45:00 +02:00
Michael Vogel
bc98f86afe
Update src/Database/DBA.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-08-26 22:44:51 +02:00
212e06b87b
Added support for the "replace" database command
2020-08-26 20:16:57 +00:00
9a3d04dce2
Merge pull request #9047 from annando/no-item-delivery-data
...
The table "item-delivery-data" does not exist on newer systems
2020-08-22 13:17:49 +02:00
dcfde52e7f
The table "item-delivery-data" does not exist on newer systems
2020-08-22 05:22:08 +00:00
16591077ac
Fix Database $_SERVER usage and remove old .travis files
2020-08-19 14:20:07 +02:00
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
0c73531da1
Poco and gcontact (mostly) removed
2020-08-01 16:15:18 +00:00
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
b0086a49e2
in "getidforurl" "no update" is now "update"
2020-07-15 21:08:42 +00:00
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
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
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
8eeb7807d3
Replace remaining instances with "allowlist", "denylist" and "blocklist"
2020-06-07 11:24:56 -04:00
530ff51898
Rename system config value to db_log_index_denylist
2020-06-07 11:24:56 -04:00
7ac4a08e1b
Additional "is null" check in post update / create the "vid" if needed
2020-05-31 15:48:31 +00:00
4d23de997a
Updated postupdate function
2020-05-26 21:45:57 +00:00
95b4f35a12
Improved server detection / gsid introduced
2020-05-22 04:19:32 +00:00
ef3dc72dca
Ensure unified order of 'verb' records
2020-05-19 05:51:58 +00:00
90b1355555
Merge pull request #8649 from annando/annando/issue8550
...
Issue 8550: New experimental database configurations
2020-05-17 09:11:30 -04:00
7ace1049bb
Issue 8572: Ensure to log database errors
2020-05-17 10:56:19 +00:00
4d4678ceb6
New experimental database configurations
2020-05-17 09:03:56 +00:00
ecde6b0066
Issue 8635: Create foreign keys without constraint name
2020-05-16 20:57:04 +00:00
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
28e7564d79
Added some more sql commands to the list
2020-05-16 10:21:16 +00:00
8e12edc375
Improved code
2020-05-16 10:04:09 +00:00
4faef126ff
Improved structure
2020-05-16 09:01:54 +00:00
4e1b1c0811
Issue 8635: Avoid concurrent database updates
...
Possibly helps with #8635
2020-05-16 08:15:51 +00:00
28e52f4db1
Fixed table name
2020-05-16 06:14:25 +00:00
14f814e6ba
Issue 8636: Check and fix data before foreign key creation
2020-05-16 06:12:28 +00:00
ec3290da3b
We already have got a function to check if a table exists
2020-05-15 18:32:53 +00:00
d70b77288d
Call the initial value check in the test
2020-05-15 18:08:06 +00:00
e333f45d0f
Ensure that the initial values are set
2020-05-15 17:49:07 +00:00
89b47afb09
Testmode added
2020-05-15 15:41:50 +00:00
d71c3e0812
Activate test mode for database
2020-05-15 15:05:17 +00:00
7a82171bfe
The "term" table is removed
2020-05-15 06:50:20 +00:00
faaf3d89e3
The next boolean
2020-05-11 19:07:18 +00:00
c5be1092d0
Use "quoteIdentifier"
2020-05-11 18:59:36 +00:00
a7f777ee43
DBStructure is now using "q(" nevermore
2020-05-10 20:23:58 +00:00
7f55e1b2bc
We now support real foreign keys
2020-05-10 14:55:03 +00:00
5fe6a2dfcd
We now store verbs in a new side table
2020-05-09 15:38:40 +00:00
0f042b064a
Fix warning, notice and DB Error
2020-05-05 21:49:48 +00:00
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
7de6e60328
Merge remote-tracking branch 'upstream/develop' into issue-8550
2020-05-05 15:56:24 +00:00
5725784055
Update database definition, cleaned code
2020-05-05 15:47:35 +00:00
59675c4f0b
Merge remote-tracking branch 'upstream/develop' into no-term2
2020-05-05 15:44:24 +00:00
875d6b36e9
File and category aren't using "term" anymore
2020-05-03 15:13:40 +00:00
1a4beaf061
post update function added
2020-05-02 21:27:37 +00:00
6d4962a571
1,000 is better than 100
2020-04-30 12:13:13 +00:00
bb0d6ce6f6
Better check for finished conversion
2020-04-30 09:03:05 +00:00
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
6487daa4a9
Issue 8550: Check for a good table_definition cache value
2020-04-29 06:28:06 +00:00
70e5639e29
Merge
2020-04-28 13:33:03 +00:00
fd752be114
Issue 8546: Added option to not use prepared statements
2020-04-28 05:40:23 +00:00
6c59e03805
Renamed comment
2020-04-26 16:20:17 +00:00
51bc5279a0
Documentation and unneeded stuff removed
2020-04-25 18:36:58 +00:00
afa712b811
DBView is View
2020-04-24 08:48:34 +00:00
c3aa2730de
Improved definition style
2020-04-23 07:02:18 +00:00
63ebbb8a16
We now can define views
2020-04-23 06:19:44 +00:00
01c6179feb
Check for Antelope and convert to Barracuda
2020-04-01 18:11:06 +00:00
f047944b2d
Switch all item deletion logging to info level
2020-03-04 15:59:19 -05:00
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
bac5159f6f
Clarify update.php doc and mention Database\PostUpdate
2020-01-20 07:47:53 -05:00
559879f41f
Enable Model lazy updating based on only the changed data
...
- Simplify update decision in Database
2020-01-20 07:32:48 -05:00
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
ed9392469e
Remove unneeded Config namespace usages
2020-01-19 22:50:44 +01:00
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone
2020-01-19 22:23:44 +01:00
21640ec5d8
Add missing Friendica\DI namespace to files (PHPStorm inspection)
2020-01-19 21:26:42 +01:00
3411ced833
Move Config::set() to DI::config()->set()
2020-01-19 21:21:53 +01:00
6c36fd9e01
Move Config::get() to DI::config()->get()
2020-01-19 21:21:13 +01:00
174129af94
add missing namespaces/fix wrong class-names
2020-01-19 16:31:35 +01:00
d6efc90194
cleanup namespace usages for L10n
2020-01-19 16:31:33 +01:00
5dfee31108
Move L10n::t() calls to DI::l10n()->t() calls
2020-01-19 16:31:16 +01:00