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 Feb 22, 2019
2 parents 32490ad + 35594d1 commit 4662cac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 138 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
136 changes: 0 additions & 136 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 4662cac

Please sign in to comment.