Skip to content

Commit

Permalink
Merge pull request #3241 from morozov/issues/3237
Browse files Browse the repository at this point in the history
Removed dbal:import CLI command
  • Loading branch information
morozov committed Nov 2, 2019
2 parents 44133f0 + 29b5e7f commit c16662c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 140 deletions.
9 changes: 9 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Upgrade to 3.0

## BC BREAK: Removed dbal:import CLI command

The `dbal:import` CLI command has been removed since it only worked with PDO-based drivers by relying on a non-documented behavior of the extension, and it was impossible to make it work with other drivers.
Please use other database client applications for import, e.g.:

* For MySQL and MariaDB: `mysql [dbname] < data.sql`.
* For PostgreSQL: `psql [dbname] < data.sql`.
* For SQLite: `sqlite3 /path/to/file.db < data.sql`.

## BC BREAK: Removed support for DB-generated UUIDs

The support for DB-generated UUIDs was removed as non-portable.
Expand Down
138 changes: 0 additions & 138 deletions lib/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php

This file was deleted.

2 changes: 0 additions & 2 deletions lib/Doctrine/DBAL/Tools/Console/ConsoleRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Doctrine\DBAL\Tools\Console;

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Tools\Console\Command\ImportCommand;
use Doctrine\DBAL\Tools\Console\Command\ReservedWordsCommand;
use Doctrine\DBAL\Tools\Console\Command\RunSqlCommand;
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper;
Expand Down Expand Up @@ -56,7 +55,6 @@ public static function addCommands(Application $cli)
{
$cli->addCommands([
new RunSqlCommand(),
new ImportCommand(),
new ReservedWordsCommand(),
]);
}
Expand Down

0 comments on commit c16662c

Please sign in to comment.