From f242a9db3acbc2d1779bbb09982a4d6e3bf6c1e6 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Wed, 8 Aug 2018 18:47:33 -0700 Subject: [PATCH] Deprecated dbal:import CLI command --- UPGRADE.md | 11 +++++++++++ .../DBAL/Tools/Console/Command/ImportCommand.php | 1 + 2 files changed, 12 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index 25e2747b67f..b860757156c 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -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 diff --git a/lib/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php b/lib/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php index 61fb07fb0d6..005cf7ed5a6 100644 --- a/lib/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php +++ b/lib/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php @@ -42,6 +42,7 @@ * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel + * @deprecated Use a database client application instead */ class ImportCommand extends Command {