Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
database system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2017 at 18:21 UTC
Updated:
16 Jun 2019 at 23:19 UTC
Jump to comment: Most recent
Comments
Comment #2
cilefen commentedComment #3
gaurav.kapoor commentedComment #4
gaurav.kapoor commentedComment #5
gaurav.kapoor commentedComment #6
gaurav.kapoor commentedComment #7
gaurav.kapoor commentedComment #8
cilefen commentedComment #9
gaurav.kapoor commentedComment #10
sidharthapComment #11
sidharthapComment #12
opensense commentedComment #13
opensense commentedComment #14
opensense commentedComment #15
pritam-osl commentedComment #16
cilefen commentedEveryone, let's please slow down on creating new issues and get the existing ones reviewed. Everyone go review someone else's please.
Comment #17
cilefen commentedComment #18
jaykandariComment #19
jaykandariComment #20
jaykandarimoving
db_truncate()to 2nd list, it is defined and only used in test files.Comment #21
jaykandariComment #22
jaykandariMoving following functions to 2nd list, as they don't have call implementation other than test files.
Comment #23
gaurav.kapoor commentedComment #24
cilefen commented#2849745: Replace documentation recommending db_*() wrappers
Comment #25
cilefen commentedNote comment #22 needs another look because there are test usages for other things that call some of those functions. I think the way we want to go right now is to replace most usages except for tests of the thing itself (if there are any).
Comment #26
gaurav.kapoor commentedComment #27
gaurav.kapoor commentedComment #28
gaurav.kapoor commentedComment #29
dhruveshdtripathi commentedComment #30
xjmI think we should make the first issues about replacing code references, and then have a different combined followup for replacing all the documentation references for the different functions since they are often mentioned together. What do you think?
Comment #31
cilefen commentedYes. Otherwise this is going to be too difficult.
Comment #32
cilefen commentedThis is a duplicate issue.
Comment #33
cilefen commentedComment #34
cilefen commentedComment #35
cilefen commentedComment #36
jeetendrakumar commentedComment #37
jeetendrakumar commentedComment #38
adriancidAdded the db_query issue.
Comment #41
mondrakeSee #2953385: Add a $connection property to DatabaseTestBase kernel test class to be used by extending classes for a change to
DatabaseTestBase.Comment #43
subson commentedIf db_truncate is used in module, how can we replace that?
Comment #44
volegerhttps://api.drupal.org/api/drupal/core%21includes%21database.inc/functio...
So, usage would be looks like:
Comment #45
volegerComment #46
mondrakeComment #47
mondrakeFor
db_field_set_defaultanddb_field_set_no_default, I suggest to discuss in #2993663: Deprecate Schema::fieldSetDefault and Schema::fieldSetNoDefault, they're not used whether not just those, but even the new OOP methods should be deprecated.Comment #48
mondrakeComment #49
mondrakeThe issues here led to removing usage, but not to deprecation according to new standard, so we will need new issues to fix them.
Comment #50
mondrakeComment #51
andypostAdded related to
db_ignore_replica#2286235: Deprecate db_ignore_replica() and convert it to serviceComment #52
mondrakeComment #53
mondrakeComment #54
mondrakeOpened #2994556: Properly deprecate db_and, db_condition, db_or, db_xor.
Comment #55
andypostfiled #2994561: Properly deprecate db_create_table
Comment #56
mondrakeComment #57
mondrakeComment #58
mondrakeOpened #2994694: Properly deprecate db_driver, db_escape_field, db_escape_table, db_rename_table, db_drop_index, db_drop_unique_key, db_add_unique_key, db_drop_primary_key, db_add_primary_key
Comment #59
mondrakeComment #60
mondrakeOpened #2994904: Convert query('SELECT ... FROM {xxx}') to select('xxx')->... in tests that would help reducing later efforts on #2875394: Replace all calls to db_query, which is deprecated
Comment #61
mondrakeComment #62
mondrakeComment #63
mondrakeComment #64
andypostFiled
- #2996436: Follow-up to fix DatabaseLegacyTest::testDbRenameTable
- #2996432: Replace all calls to db_truncate, which is deprecated.
Comment #65
andypostFiled #2996441: Replace all calls to db_query_temporary, which is deprecated.
Comment #66
mondrakeComment #67
volegerComment #68
mondrakeComment #69
mondrakeOpened
Comment #70
mondrakeComment #71
mondrakeComment #72
volegerCreated #2999612: Properly deprecate db_query_range
Comment #73
andypostFiled patch for last one #2999678: Properly deprecate db_field_exists
Comment #74
volegerFixed #2999612: Properly deprecate db_query_range
Comment #75
volegerFixed #2999588: Properly deprecate db_index_exists
Comment #76
volegerFixed #2999678: Properly deprecate db_field_exists
Comment #77
mondrakeAdding to IS some more issues that IMHO should be solved before closing this meta.
Comment #78
mondrakeComment #79
volegerFixed #2850037: Replace all calls to db_like(), which is deprecated
Comment #80
volegerComment #81
mondrakeComment #82
voleger#3001216: Use the database.replica service where appropriate
Comment #83
mondrakeComment #84
mondrakeComment #85
mondrakeComment #86
mondrakeComment #87
mondrakeComment #88
mondrakeComment #89
mondrakeComment #90
voleger#2959269: [meta] Core should not trigger deprecated code except in tests and during updates
Comment #92
volegerAll calls were replaced
Comment #93
volegerReprioritized the issues. The real blocker for this meta is the issue #2947946: Create change record for all deprecated db_* functions
Comment #94
volegerThe last required issue is resolved, so all calls to functions from database.inc file was replaced and properly deprecated.
Set status to
Needs reviewto collect more opinions and potentially resolve this issue asFixed.Comment #95
volegerComment #96
volegerMy mistake. Closed #3049380: Complete deprecation of _db_get_target() function issue. So we still need to resolve #2947946: Create change record for all deprecated db_* functions
Comment #97
voleger#2947946: Create change record for all deprecated db_* functions fixed.
Comment #98
andypostThis meta could be closed cos only 2 issues left but they are just related
Comment #99
volegerAgree. Mark as fixed.
Only #2849745: Replace documentation recommending db_*() wrappers left to completely deprecate database.inc file.