I tried to file bug in joomla core lib "JDatabaseImporterMysqli" . But not able to.
Here are bug details in function mergeStructure
it only merges first table structure .
This code "if ($queries = $this->getAlterTableSql($xml->database->table_structure))" has problem .
Solutuion: Change it to this "if ($queries = $this->getAlterTableSql($table)) {" .
If you feel there's a bug in Joomla, please report it using the following process:
http://docs.joomla.org/Filing_bugs_and_issues
Let us know if you have any questions.
Thanks!
Kind regards,
Nick
Originally posted by @nicksavov in #694 (comment)
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-10-15 08:31:10 |
Closed_By | ⇒ | brianteeman |
SPAM by bot
No idea what this relates to - closed
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/importer.php this file has issue at line 190 .
steps to reproduce
Export here is code for export
require_once JPATH_COMPONENT . '/lib/importer.php';
$database = JFactory::getDBO();
$tables = $database->getTableList();
$prefix = $database->getPrefix();
$dt_tables = [];
foreach ($tables as $table) {
if (strpos($table, "dtsms") !== false) {
$dt_tables[] = $table;
}
}
$schema = [];
$cnt = 1;
$exporter = new JDatabaseExporterMysqli();
$exporter->setDbo($database);
$exporter->from($dt_tables);
echo $exporter->__toString();
While importing from same xml only imports first table
What about the title of this issue "Hi Bruno"
Sorry posting first time . So just replied from other issue . let me edit title
Title |
|
No idea what this relates to - closed