Loading core/lib/Drupal/Core/Command/DbDumpCommand.php +7 −3 Original line number Diff line number Diff line Loading @@ -415,13 +415,17 @@ protected function getTemplate() { $connection = Database::getConnection(); // Ensure any tables with a serial column with a value of 0 are created as // expected. if ($connection->databaseType() === 'mysql') { $sql_mode = $connection->query("SELECT @@sql_mode;")->fetchField(); $connection->query("SET sql_mode = '$sql_mode,NO_AUTO_VALUE_ON_ZERO'"); } {{TABLES}} // Reset the SQL mode. if ($connection->databaseType() === 'mysql') { $connection->query("SET sql_mode = '$sql_mode'"); } ENDOFSCRIPT; return $script; } Loading Loading
core/lib/Drupal/Core/Command/DbDumpCommand.php +7 −3 Original line number Diff line number Diff line Loading @@ -415,13 +415,17 @@ protected function getTemplate() { $connection = Database::getConnection(); // Ensure any tables with a serial column with a value of 0 are created as // expected. if ($connection->databaseType() === 'mysql') { $sql_mode = $connection->query("SELECT @@sql_mode;")->fetchField(); $connection->query("SET sql_mode = '$sql_mode,NO_AUTO_VALUE_ON_ZERO'"); } {{TABLES}} // Reset the SQL mode. if ($connection->databaseType() === 'mysql') { $connection->query("SET sql_mode = '$sql_mode'"); } ENDOFSCRIPT; return $script; } Loading