Commit graph

361 commits

Author SHA1 Message Date
Hypolite Petovan
c8476f6838
Merge pull request #9687 from annando/drop-unused
Drop unused friendica tables
2020-12-20 19:11:45 -05:00
Michael
6ebd023c4e Drop unused friendica tables 2020-12-20 14:01:46 +00:00
Michael
d755bbae8f Remove unneeded configutation 2020-12-20 08:56:32 +00:00
Michael
92679de225 Remove orphaned avatar photo entries 2020-12-19 22:07:08 +00:00
Hypolite Petovan
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
Michael
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
Michael
7e6a9bd893 Ensure that a view is a view and not a table 2020-11-29 19:06:43 +00:00
Michael
bd9f36622e Cast field data when ATTR_EMULATE_PREPARES is enabled 2020-11-27 11:24:31 +00:00
Michael
23bc725ce9 Fix: Only echo on verbose 2020-11-23 19:47:30 +00:00
Michael
61ff99c410 Command line option to check initial values 2020-11-23 18:58:18 +00:00
Michael
303aaa00ca Mode switch for insert 2020-11-19 19:34:48 +00:00
Michael
3af5f6b8ee Some more foreign keys added 2020-11-19 06:26:30 +00:00
Michael
f36ecdf6bf Replacing deprecated log calls 2020-11-18 09:14:12 +00:00
Michael
4f7d42a0d3 Fixed copy&paste error 2020-11-18 05:55:15 +00:00
Michael
b09ffa0697 Relocate system user creation 2020-11-18 05:33:17 +00:00
Michael
d7fa58d81c Ensure to never delete the "0" user 2020-11-18 05:24:04 +00:00
Michael
81a03b137b Test: only insert empty user 2020-11-18 05:04:17 +00:00
Michael
1e9d3342a3 Changed order of inserts 2020-11-18 00:13:39 +00:00
Michael
317921e51c Changed order 2020-11-17 23:45:16 +00:00
Michael
eaa58da25b New table "post-user" and more foreign keys 2020-11-17 22:33:44 +00:00
Michael
eb8caaa5e7 Restore the connection check 2020-11-07 11:44:39 +00:00
Michael
8906615b2c Test if PDO doesn't work on the tests 2020-11-07 10:27:22 +00:00
Michael
84924d1c05 Test the tes 2020-11-07 10:12:31 +00:00
Michael
d6a1a836f1 Simplified connection test 2020-11-07 09:58:20 +00:00
Michael
3a5cdecb62 New function to fetch the database driver 2020-11-07 09:02:02 +00:00
Michael
f405336680 Avoid duplicate item entries 2020-10-23 19:10:17 +00:00
Philipp
d55ecb9288
Fix a lot of notices/warnings/deprecation notes in the test directory 2020-10-18 20:52:27 +02:00
Hypolite Petovan
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
Philipp
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
Philipp
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
Tobias Diekershoff
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
Michael
cb5a9ae286 Issue 9363: Display the latest post update version 2020-10-04 20:46:42 +00:00
Michael
36b06ee2a1 Postupdate: Check for existence of the "term" table 2020-10-04 19:20:18 +00:00
Michael
50b5483ee1 Ability to set the database version 2020-09-13 15:57:24 +00:00
Michael
90315e3434 Don't perform actions on empty conditions 2020-09-07 05:00:17 +00:00
Michael
4852458645 Simplify the code / check number of parameters in mergeConditions 2020-09-06 20:28:08 +00:00
Michael
44ee4a54b4 Replace "insert" with "replace" 2020-08-27 21:35:08 +00:00
Michael
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
Michael
212e06b87b Added support for the "replace" database command 2020-08-26 20:16:57 +00:00
Tobias Diekershoff
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
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