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.
After applying the views-integration patch (https://www.drupal.org/node/965720#comment-11183063) I received quite a few notices/warnings about the foreign-keys. These are not correctly defined.
Comment | File | Size | Author |
---|---|---|---|
#4 | linkchecker-foreign_keys-2831125-4.patch | 3.22 KB | TVoesenek |
#3 | foreign_keys_2831125_3.patch | 3.18 KB | ruudvanoijen |
#2 | 2831125-2.patch | 1.65 KB | SpadXIII |
Comments
Comment #2
SpadXIII CreditAttribution: SpadXIII as a volunteer commentedA small patch to fix the schema.
Comment #3
ruudvanoijen CreditAttribution: ruudvanoijen at ezCompany commentedFine patch. Added an update hook for adding the foreign keys when schema already exists.
Comment #4
TVoesenek CreditAttribution: TVoesenek commentedFixed a bug in the last version of the patch (#3), which set foreign keys on the wrong table.
Comment #5
TVoesenek CreditAttribution: TVoesenek commentedComment #6
mvwensen CreditAttribution: mvwensen commentedPatch looks better this way and seems to work for me, but an interdiff should be nice in this case.
https://www.drupal.org/documentation/git/interdiff
Comment #7
hass CreditAttribution: hass commentedI thought foreign keys are just documentation. Why do we need to run the update hook?
Comment #8
hass CreditAttribution: hass commentedAside, how have you guys found this bugs? :-) Schema modules does not warn, nor do I see any warning somewhere else?
Comment #11
hass CreditAttribution: hass commentedCommitted without
linkchecker_update_7014()
.