cycle/orm

Migration column with type json is created as text in database (Postgres) ๐Ÿ›

arizanovj opened this issue ยท 1 comments

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

@arizanovj Hello, should be fixed with a fix in cycle/database: cycle/database#134