You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have <column name="field_name" type="CLOB" sqlType="MEDIUMTEXT"/> in my schema and it generates the following migration repeatedly when running diff:
ALTER TABLE `my_table` CHANGE `field_name` `ci_comments` MEDIUMTEXT
Running propel:diff with a LONGVARCHAR column type finds differences, even they don't exist.
Cause:
During reverse lookup of the schema:
SQL::MEDIUMTEXT is parsed as Propel::LONGVARCHAR
see MySQLSchemaParser::$mysqlTypeMap
Schema based on mapping config:
Propel::LONGVARCHAR is mapped to SQL::TEXT
see MySQLPlatform::initialize()
MysqlPlatform::getColumnDDL() is creating:
from: "
foobar
TEXT"to: "
foobar
MEDIUMTEXT"because it uses the raw sqlType stored in the column object.
The text was updated successfully, but these errors were encountered: