diff --git a/docs/en/command/ddl.md b/docs/en/command/ddl.md index ff7234aff..adce9c70d 100644 --- a/docs/en/command/ddl.md +++ b/docs/en/command/ddl.md @@ -58,7 +58,7 @@ CREATE TABLE `customer` ( ### Drop a table -To drop a table with schema declaration and and all its data, you can use the +To drop a table with schema declaration and all its data, you can use the `Yiisoft\Db\Command\CommandInterface::dropTable()` method: ```php diff --git a/src/QueryBuilder/DDLQueryBuilderInterface.php b/src/QueryBuilder/DDLQueryBuilderInterface.php index 487c13c21..3018b5964 100644 --- a/src/QueryBuilder/DDLQueryBuilderInterface.php +++ b/src/QueryBuilder/DDLQueryBuilderInterface.php @@ -281,23 +281,23 @@ public function dropCheck(string $table, string $name): string; public function dropColumn(string $table, string $column): string; /** - * Builds an SQL command for adding comment to column. + * Builds an SQL command for dropping comment to column. * * @param string $table The table whose column is to comment. * @param string $column The name of the column to comment. * - * @return string The SQL statement for adding comment on column. + * @return string The SQL statement for dropping comment on column. * * Note: The method will quote the `table` and `column` parameters before using them in the generated SQL. */ public function dropCommentFromColumn(string $table, string $column): string; /** - * Builds an SQL command for adding comment to the table. + * Builds an SQL command for dropping comment to the table. * * @param string $table The table whose column is to comment. * - * @return string The SQL statement for adding comment on column. + * @return string The SQL statement for dropping comment on column. * * Note: The method will quote the `table` parameter before using it in the generated SQL. */