Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
15 Mar 2015 at 17:39 UTC
Updated:
25 Dec 2015 at 05:04 UTC
Jump to comment: Most recent
When updating a migrate_drupal test, sometimes there is a need to add to any of the various .php files that provide D6 and D7 table dumps (located in /core/modules/migrate_drupal/src/Tests/Table). These files are generated by the core/scripts/migrate-dump-d6.sh script which reads the d6.gz DB dump and generates all the table .php dumps.
While the process is documented in the migrate-dump-d6.sh, it is not foolproof, so additional documentation is needed.
Options include:
Figure out where the documentation should go, and get it written.
None.
None.
Comments
Comment #1
benjy commentedCan we outline the specific problems with the current docs. One i know of is, uncompressing and importing the Db in one hit.
gunzip < core/modules/migrate_drupal/src/Tests/d6.gz | mysql -uroot -hmysql d6Also, I think people have had issues creating a binary patch correctly. Or is that fixed with .gitattributes file now?
Comment #2
benjy commentedAlso, the entry that needs to go in your settings file, I have an example on the sandbox page: https://www.drupal.org/sandbox/benjy/2405029
Comment #3
ultimikeBenjy,
I think there are a few of issues:
git diff --full-index --binary > thepatchname.patch, no?-mike
Comment #4
benjy commentedSo i had a play with this, the core .gitattributes file seems to be causing our issues, changing this:
allowed me to create patches with git diff --binary as expected.
Comment #5
ultimikebenjy - will this be acceptable to Alex? I thought he wanted us to figure out a way to do without the .gitattributes file...
-mike
Comment #6
benjy commentedI think he meant without having a new .gitattributes in the migrate module. If the problem is just that the core one is wrong, then we should be able to fix that.
Comment #7
ultimikeComment #8
quietone commentedThe script referred to in this issue, migrate-dump-d6.sh, has been superseded by db-tools.sh in #2550291: Improve and generalize database dump tools.
This issue is about the documentation for generating the dumps and that is done, Generating database fixtures for D8 Migrate tests.
Therefor, setting as fixed.