Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix phpdocs and docs #732

Merged
merged 1 commit into from
Jul 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading