adding Sub_part info to mySQLi db import/export code#8615
adding Sub_part info to mySQLi db import/export code#8615pollen8 wants to merge 2 commits intojoomla:stagingfrom
Conversation
…rt and import of keys with length values
|
Out of interest is this the same behaviour as when you do a xml export in mysql? Which is what these database dumps seem to be based on? Also can you merge into/rebase on staging in your PR so the unit tests run please? |
|
I have tested this item ✅ successfully on 43e8acb Output with patch is correct ... Couldn't apply PR 7378 automagically (patch tool says it conflicts, which it doesn't really), but after adding the xmlToCreate() function from that PR by hand, the import test worked, with a structure of: This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8615. |
|
This PR has received new commits. CC: @cheesegrits This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8615. |
Yes that's the SQL generated by Navicat when I export the table. I believe I have updated the PR to staging - please let me know if I haven't its not something I have had a lot of experience with and could well have moofed it! This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8615. |
|
@pollen8 Don't forget PDO importer / exporter. For some reason it doesn't extends mysqli. |
|
I have tested this item 🔴 unsuccessfully on 0c9c7cb This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8615. |
|
I have tested this item ✅ successfully on 0c9c7cb This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8615. |
|
Can you please
Without that this will never b considered to be merged into core This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8615. |
|
I have tested this item ✅ successfully on 0c9c7cb My output at the end of this instructions: This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8615. |
|
can someone double check this pr with the i've got |
| foreach ($columns as $column) | ||
| { | ||
| $kColumns[] = (string) $column['Column_name']; | ||
| $kColumns[] = (string) $column['Column_name'] . $kLength; |
There was a problem hiding this comment.
$kLength = (string) $column['Sub_part'];
$kLength = $kLength == '' ? '' : '(' . $kLength . ')';|
@pollen8 did you have time to fix conflitcs ? |
|
as there is no fix for Conflicts for long Time should this be closed? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/8615. |
|
@pollen8 please update this PR otherwise it will have to be closed in a few weeks |
|
@franz-wohlkoenig in the past in cases like this I would mark it as information required and then after a few weeks if it wasnt updated I would close it with a message something like "This has been closed due to lack of response to the requests above - it can always be reopened in the future if it is updated" This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/8615. |
|
Thanks for Information, will do, @brianteeman |
|
i've reworked this in #14272 |
|
Closing in favor of the updated #14272 |
Allows for export and import of keys with length values
To test:
Run this sql query to create a test table
In index.php after:
add:
refresh your site and you should see a white page, view the page source and you should see.
An xml file should also have been saved in /tmp/dbkeytest.xml.
Note that Sub_part ="10" has been added to the key 'fb_join_fileupload_INDEX'
The importer will also work IF you have this PR merged in as well
https://issues.joomla.org/tracker/joomla-cms/7378
To test:
Drop the table dbkeytest
Replace the test code you added to index.php with:
Refresh the browser and you should see that the db table dbkeytest has been re-created in the database and that the key 'fb_join_fileupload_INDEX' has the sub_part applied. ie if you run:
the results should be