Development

#264 (symfony propel-build-model fails: Unable to parse default value as date/time value: 'CURRENT_TIMESTAMP')

You must first sign up to be able to contribute.

Ticket #264 (closed defect: invalid)

Opened 7 years ago

Last modified 7 years ago

symfony propel-build-model fails: Unable to parse default value as date/time value: 'CURRENT_TIMESTAMP'

Reported by: anonymous Assigned to:
Priority: major Milestone:
Component: Version: 0.7.X
Keywords: Cc:
Qualification:

Description

If schema.xml contains fields with timestamps:

<column name="bearbdatum" type="TIMESTAMP" default="CURRENT_TIMESTAMP">

I get:

Execution of target "om-template" failed for the following reason: /usr/share/php/symfony/vendor/propel-generator/build-propel.xml:415:1: Unable to parse default value as date/time value: 'CURRENT_TIMESTAMP'

If I change it to: <column name="bearbdatum" type="TIMESTAMP"> everything works

Change History

02/28/06 17:11:51 changed by RoVeRT <symfony@rovert.net>

  • status changed from new to closed.
  • resolution set to invalid.

This is a Propel thing and defaults can not be SQL constants or functions.

05/08/06 20:13:37 changed by AB

Alternatively, you can put : default="0000-00-00 00:00:00" instead of default=""

-ab