Skip to content

Commit

Permalink
Merge pull request #3244 from morozov/bpo/2.9/3237
Browse files Browse the repository at this point in the history
Deprecated dbal:import CLI command
  • Loading branch information
Ocramius authored Aug 9, 2018
2 parents 20b64d6 + f242a9d commit 66daecd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Upgrade to 2.9

## Deprecated dbal:import CLI command

The `dbal:import` CLI command has been deprecated since it only works with PDO-based drivers by relying on a non-documented behavior of the extension, and it's 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`.

# Upgrade to 2.8

## Deprecated usage of DB-generated UUIDs
Expand Down
1 change: 1 addition & 0 deletions lib/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Jonathan Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
* @deprecated Use a database client application instead
*/
class ImportCommand extends Command
{
Expand Down

0 comments on commit 66daecd

Please sign in to comment.