Skip to content

Commit a12ece8

Browse files
committed
Removed migration based logic for Postgres enums
1 parent 329094b commit a12ece8

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/Propel/Generator/Platform/PgsqlPlatform.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,6 @@ protected function initializeTypeMap(): void
7070
$this->setSetTypesMapping(true);
7171
}
7272

73-
/**
74-
* PostgreSQL uses named enum types created via CREATE TYPE, not inline ENUM() syntax.
75-
* Returns VARCHAR as the SQL type since PDO handles PG enum values as strings.
76-
* Use the `sqlType` schema attribute to specify the actual PG enum type name if needed.
77-
*
78-
* @param \Propel\Generator\Model\Column $column
79-
*
80-
* @return string
81-
*/
82-
#[\Override]
83-
public function buildNativeEnumeratedColumnSqlType(Column $column): string
84-
{
85-
return 'VARCHAR';
86-
}
87-
8873
/**
8974
* @return string
9075
*/

0 commit comments

Comments
 (0)