Migration column with type json is created as text in database (Postgres) ๐
arizanovj opened this issue ยท 1 comments
arizanovj commented
No duplicates ๐ฅฒ.
- I have searched for a similar issue in our bug tracker and didn't find any solutions.
What happened?
Hello. I started working on new project and I am using Cycle. I have a migration created which upon execution is created with wrong column type in the database (Postgres) - instead column of type json the column is created with text type. This is part of the code (migration) with the column:
->addColumn('jsoncolumn', 'json', ['nullable' => false, 'default' => null]) ...
Version
ORM 2.2.1
PHP 8.2
msmakouz commented
@arizanovj Hello, should be fixed with a fix in cycle/database: cycle/database#134