1818use Yiisoft \Db \Query \Data \DataReaderInterface ;
1919use Yiisoft \Db \Query \QueryInterface ;
2020use Yiisoft \Db \QueryBuilder \DMLQueryBuilderInterface ;
21- use Yiisoft \Db \Schema \Column \ColumnSchemaInterface ;
21+ use Yiisoft \Db \Schema \Column \ColumnInterface ;
2222
2323/**
2424 * This interface represents a database command, such as a `SELECT`, `INSERT`, `UPDATE`, or `DELETE` statement.
@@ -46,13 +46,13 @@ public function addCheck(string $table, string $name, string $expression): stati
4646 *
4747 * @param string $table The name of the table to add new column to.
4848 * @param string $column The name of the new column.
49- * @param ColumnSchemaInterface |string $type The column type.
49+ * @param ColumnInterface |string $type The column type.
5050 * {@see QueryBuilder::buildColumnDefinition()} will be called to convert the given column type to the database one.
5151 * For example, `string` will be converted to `varchar(255)`, and `string not null` becomes `varchar(255) not null`.
5252 *
5353 * Note: The method will quote the `table` and `column` parameters before using them in the generated SQL.
5454 */
55- public function addColumn (string $ table , string $ column , ColumnSchemaInterface |string $ type ): static ;
55+ public function addColumn (string $ table , string $ column , ColumnInterface |string $ type ): static ;
5656
5757 /**
5858 * Builds an SQL command for adding a comment to a column.
@@ -146,13 +146,13 @@ public function addPrimaryKey(string $table, string $name, array|string $columns
146146 *
147147 * @param string $table The table whose column is to change.
148148 * @param string $column The name of the column to change.
149- * @param ColumnSchemaInterface |string $type The column type.
149+ * @param ColumnInterface |string $type The column type.
150150 * {@see QueryBuilder::buildColumnDefinition()} will be called to convert the give column type to the physical one.
151151 * For example, `string` will be converted as `varchar(255)`, and `string not null` becomes `varchar(255) not null`.
152152 *
153153 * Note: The method will quote the `table` and `column` parameters before using them in the generated SQL.
154154 */
155- public function alterColumn (string $ table , string $ column , ColumnSchemaInterface |string $ type ): static ;
155+ public function alterColumn (string $ table , string $ column , ColumnInterface |string $ type ): static ;
156156
157157 /**
158158 * Creates a batch INSERT command.
@@ -319,14 +319,14 @@ public function createIndex(
319319 * The columns in the new table should be specified as name-definition pairs (e.g. 'name' => 'string'), where name
320320 * is the name of the column which will be properly quoted by the method, and definition is the type of the column
321321 * which can contain a native database column type, {@see ColumnType abstract} or {@see PseudoType pseudo} type,
322- * or can be represented as instance of {@see ColumnSchemaInterface }.
322+ * or can be represented as instance of {@see ColumnInterface }.
323323 *
324324 * The {@see QueryBuilderInterface::buildColumnDefinition()} method will be invoked to convert column definitions
325325 * into SQL representation. For example, it will convert `string not null` to `varchar(255) not null`
326326 * and `pk` to `int PRIMARY KEY AUTO_INCREMENT` (for MySQL).
327327 *
328328 * The preferred way is to use {@see ColumnBuilder} to generate column definitions as instances of
329- * {@see ColumnSchemaInterface }.
329+ * {@see ColumnInterface }.
330330 *
331331 * ```php
332332 * $this->createTable(
@@ -348,8 +348,8 @@ public function createIndex(
348348 * generated SQL.
349349 *
350350 * @param string $table The name of the table to create.
351- * @param (ColumnSchemaInterface |string)[] $columns The columns (name => definition) in the new table.
352- * The definition can be `string` or {@see ColumnSchemaInterface } instance.
351+ * @param (ColumnInterface |string)[] $columns The columns (name => definition) in the new table.
352+ * The definition can be `string` or {@see ColumnInterface } instance.
353353 * @param string|null $options More SQL fragments to append to the generated SQL.
354354 *
355355 * @throws Exception
@@ -358,7 +358,7 @@ public function createIndex(
358358 *
359359 * Note: The method will quote the `table` and `columns` parameter before using it in the generated SQL.
360360 *
361- * @psalm-param array<string, ColumnSchemaInterface >|string[] $columns
361+ * @psalm-param array<string, ColumnInterface >|string[] $columns
362362 */
363363 public function createTable (string $ table , array $ columns , string $ options = null ): static ;
364364
0 commit comments