symfony 1.4 propel:build-all not working on Mysql 5.5

后端 未结 2 1819
悲&欢浪女
悲&欢浪女 2020-12-30 05:42

i am using Symfony 1.4.8 and Mysql 5.5 i got this error when i run

symfony propel:build-all

You have an error in your SQL syntax; check t

2条回答
  •  不思量自难忘°
    2020-12-30 06:04

    Fixed the issue. It seems that in the DDL, you can’t say “Type=InnoDB|MyISAM|Foo” anymore. You have to say “Engine=InnoDB|MyISAM” so edit one file

    symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/builder /sql/mysql/MysqlDDLBuilder.php

    Line 156, change it as follows:- $script .= “Engine=$mysqlTableType”;

提交回复
热议问题