Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since most of the db_* methods to access database have been deprecated , all calls to such methods should be replaced with new syntax to access database. Check the following for more details.https://api.drupal.org/api/drupal/core%21includes%21database.inc/functio... . There is already an issue created for Drupal core https://www.drupal.org/node/2848161 to replace all calls to such methods.
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff-2-7.txt | 1.39 KB | dhruveshdtripathi |
#7 | replace_calls_to-2852813-7.patch | 3.42 KB | dhruveshdtripathi |
#2 | depreciated-2852813-2.patch | 3.31 KB | Pavan B S |
#2 | submoduledepreciated-2852813-3.patch | 3.31 KB | Pavan B S |
Comments
Comment #2
Pavan B S CreditAttribution: Pavan B S at Valuebound commentedApply both the patches
Comment #3
Pavan B S CreditAttribution: Pavan B S at Valuebound commentedComment #4
joelpittetMajor would be a "must", this is a "should" so changing it to normal. Also the patch will need to apply against 1.x-dev so changing the version. Otherwise looks good.
Comment #5
Berdirsame here, this is also off, in the other direction.
indendation is incorrect here. also no reason to make two lines out of this.
Comment #6
dhruveshdtripathi CreditAttribution: dhruveshdtripathi as a volunteer and at DevsAdda for OpenSense Labs commentedWorking on it
Comment #7
dhruveshdtripathi CreditAttribution: dhruveshdtripathi as a volunteer and at DevsAdda for OpenSense Labs commentedChanges made according to comment #5. Interdiff added
Comment #8
joelpittetIndentation fixed, back to RTBC
Comment #10
BerdirCommitted.
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedNew syntax gives database exception in case with sqllite? Getting fatal mysql errors while trying to save a redirect to different URL