Skip to content

Commit 0ab6783

Browse files
authored
Document --file-delete for sqlq (#3788)
1 parent 9fb7658 commit 0ab6783

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

includes/drupal.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ use Drush\Drush;
1212
* if any. Returns FALSE if there is no current Drupal installation,
1313
* or it is somehow broken.
1414
*
15+
* @deprecated See \Drush\Boot\Boot::getVersion.
16+
*
1517
* @return
1618
* A string containing the version number of the current
1719
* Drupal installation, if any. Otherwise, return FALSE.

src/Commands/sql/SqlCommands.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public function cli($options = ['extra' => self::REQ])
150150
* @optionset_sql
151151
* @option result-file Save to a file. The file should be relative to Drupal root.
152152
* @option file Path to a file containing the SQL to be run. Gzip files are accepted.
153+
* @option file-delete Delete the --file after running it.
153154
* @option extra Add custom options to the connect string (e.g. --extra=--skip-column-names)
154155
* @option db-prefix Enable replacement of braces in your query.
155156
* @validate-file-exists file
@@ -165,7 +166,7 @@ public function cli($options = ['extra' => self::REQ])
165166
* @bootstrap max configuration
166167
*
167168
*/
168-
public function query($query = '', $options = ['result-file' => null, 'file' => self::REQ, 'extra' => self::REQ, 'db-prefix' => false])
169+
public function query($query = '', $options = ['result-file' => null, 'file' => self::REQ, 'file-delete' => false, 'extra' => self::REQ, 'db-prefix' => false])
169170
{
170171
$filename = $options['file'];
171172
// Enable prefix processing when db-prefix option is used.

0 commit comments

Comments
 (0)