Skip to content

Commit

Permalink
Remove ColumnFactory::fromPseudoType()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Sep 16, 2024
1 parent d2a30b6 commit bb85855
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Column/ColumnFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,6 @@ final class ColumnFactory extends AbstractColumnFactory
'jsonb' => ColumnType::JSON,
];

public function fromPseudoType(string $pseudoType, array $info = []): ColumnSchemaInterface
{
return match ($pseudoType) {
PseudoType::PK => ColumnBuilder::primaryKey()->load($info),
PseudoType::UPK => ColumnBuilder::primaryKey()->unsigned()->load($info),
PseudoType::BIGPK => ColumnBuilder::bigPrimaryKey()->load($info),
PseudoType::UBIGPK => ColumnBuilder::bigPrimaryKey()->unsigned()->load($info),
PseudoType::UUID_PK => ColumnBuilder::uuidPrimaryKey()->load($info),
PseudoType::UUID_PK_SEQ => ColumnBuilder::uuidPrimaryKey(true)->load($info),
};
}

/**
* @psalm-param ColumnType::* $type
* @psalm-param ColumnInfo $info
Expand Down

0 comments on commit bb85855

Please sign in to comment.