TheSoftwareHouse / fogger

MIT License
138 stars 43 forks source link

fogger doesn't support Postgres ENUM type #17

Open nervgh opened 4 years ago

nervgh commented 4 years ago

Hi everyone!

Thanks for your efforts!

It looks like fogger doesn't work with Postgres Enum type

worker_1  | In AbstractPlatform.php line 479:
worker_1  |                                                                                
worker_1  |   Unknown database type enum_paymentdocuments_transactiontype requested, Doct  
worker_1  |   rine\DBAL\Platforms\PostgreSQL94Platform may not support it.     
AdvanceGeneric commented 3 years ago

All enums need to be mapped: https://stackoverflow.com/questions/8750724/what-do-you-use-instead-of-enum-in-doctrine2/9057352#9057352 and/or avoided on the general db design: http://komlenic.com/244/8-reasons-why-mysqls-enum-data-type-is-evil/