Propel2 icon indicating copy to clipboard operation
Propel2 copied to clipboard

Propel not creating valid SQL out of schema.xml with certain default values

Open GBeushausen opened this issue 4 years ago • 2 comments

Propel seems to be unable to create valid migration scripts under some circumstances. For example when ; is used in the default value:

<column name="valet_arr" phpName="ValetArr" type="VARCHAR" size="50" required="true" defaultValue="home;standard;partner"/> This generates the following SQL:

standard; partner\' NOT NULL;

GBeushausen avatar Jan 05 '21 17:01 GBeushausen

Do you have a fix for this? We plan to do a release soon, so if you have a PR here, that would be very welcome and could still fit into that release.

dereuromark avatar Jan 12 '21 14:01 dereuromark

Unfortunately i haven't found a solution yet. Maybe i have time by the weekend to look deeper into this.

GBeushausen avatar Jan 12 '21 14:01 GBeushausen