As a prelude to try and automate the process of creating Drupal dumps for upgrade testing, this is a followup issue for #1182296: Add tests for 7.0->7.x upgrade path (random test failures). There was actually an error in the generate-d7-content.sh script that causes a PDOException. We removed a line $node_type = 'broken'; from the patch since it didn't seem to be getting used anywhere else. However, the db_update lines that come after are changing the content type into a 'broken' content type (so it start off as an article, gets the fields saved to the corresponding tables, then changes to broken; this would not otherwise happen correctly on a content type that does not initially exist) to make sure the upgrade works on a bundle whose parent is disabled.
Attaching patch in upcoming comment.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1356358.patch | 731 bytes | btmash |
| #3 | 1356358.patch | 588 bytes | btmash |
| #1 | 1356358.patch | 400 bytes | btmash |
Comments
Comment #1
btmash commentedAttaching patch which should fix this. As a note, this issue does not exist for D8 since it was correctly written to begin with :)
As a note...dumps will need to be created...again. *sigh*
Comment #2
btmash commentedAck...needs review for this atleast.
Comment #3
btmash commentedArgh...changing patch again.
Comment #4
btmash commentedOk, added a few more comments explaining the reason for why we create a variable for the node type.
Comment #5
xjmAh! Now I understand why this was the way it was before we changed it. For reference, here is how
$nodeand$node_typeare used later on in the script:The added comment makes this a lot more clear.
Comment #6
webchickHuh. Oooookaayyyy. :)
Committed and pushed to 7.x. Thanks!