Closed (fixed)
Project:
DBTNG Migrator
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 May 2012 at 00:40 UTC
Updated:
20 May 2012 at 23:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
josh waihi commentedWhats the point of these lines?
Why rename the variable to altered schema? could it just use the $schema variable?
Comment #2
greg.1.anderson commentedSorry about those "junk" lines; I am using a new nifty editor that is configured to automatically fix up any whitespace in the file that does not conform to Drupal coding conventions. It automatically converts tabs into spaces, and removes trailing whitespace from the ends of all lines. So, those no-difference-diff lines are showing where spurious trailing whitespace was removed.
Regarding $altered_schema, the intent was to skip creation of any table added to the schema by hook_schema_alter. Skipping this step causes the code to blow up, because the same table name is added to multiple schemas by some alter hooks, whereas there is no apparent problem with just skipping these tables.
Attached is a new patch that is functionally equivalent to #0, but is perhaps more expressive in its intention vis-a-vis hook_schema_alter.
Comment #3
josh waihi commentedCool. Couple of spelling mistakes e.g:
If you would be so kind as to explain in comments, why this process is needed. I'll be happy to commit it. Cheers.
Comment #4
greg.1.anderson commentedHere is another pass that cleans up #2, but makes no functional changes.
Comment #5
josh waihi commentedPatch commited to 7.x-1.x. Fix will appear in 7.x-1.1 release. Thanks!