Skip to content
Open
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
32 changes: 30 additions & 2 deletions src/Phinx/Db/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,21 @@ public function reset(): void
*
* @param string|\Phinx\Db\Table\Column $columnName Column Name
* @param string|\Phinx\Util\Literal|null $type Column Type
* @param array<string, mixed> $options Column Options
* @param array{
* limit?: int,
* length?: int,
* default?: mixed,
* null?: bool,
* after?: string,
* comment?: string,
* precision?: int,
* scale?: int,
* signed?: bool,
* values?: mixed,
* identity?: bool,
* update?: string,
* timezone?: bool,
* } $options Column Options
* @throws \InvalidArgumentException
* @return $this
*/
Expand Down Expand Up @@ -358,7 +372,21 @@ public function renameColumn(string $oldName, string $newName)
*
* @param string $columnName Column Name
* @param string|\Phinx\Db\Table\Column|\Phinx\Util\Literal $newColumnType New Column Type
* @param array<string, mixed> $options Options
* @param array{
* limit?: int,
* length?: int,
* default?: mixed,
* null?: bool,
* after?: string,
* comment?: string,
* precision?: int,
* scale?: int,
* signed?: bool,
* values?: mixed,
* identity?: bool,
* update?: string,
* timezone?: bool,
* } $options Options
* @return $this
*/
public function changeColumn(string $columnName, string|Column|Literal $newColumnType, array $options = [])
Expand Down