Skip to content

Commit

Permalink
Fix phpdocs AND docs (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaweipan authored Jul 29, 2023
1 parent c01d368 commit 4434b83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/en/command/ddl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/QueryBuilder/DDLQueryBuilderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 4434b83

Please sign in to comment.