Go to Google Groups Home    doctrine-svn
Re: [Doctrine] #1711: dropConstraint()'s $primary hint in MySQL

Doctrine <no-re...@phpdoctrine.org>

#1711: dropConstraint()'s $primary hint in MySQL
-----------------------------------+--------------------------------------- -
 Reporter:  temp                   |       Owner:  jwage
     Type:  defect                 |      Status:  new  
 Priority:  minor                  |   Milestone:  1.0.5
Component:  Attributes             |     Version:  1.0.3
 Keywords:                         |    Has_test:  0    
 Mystatus:  Pending Core Response  |   Has_patch:  0    
-----------------------------------+--------------------------------------- -

Comment(by temp):

 Uhm... even worse, "PRIMARY KEY" as the $constraintName doesn't work:

 Error updating schema: SQLSTATE[42000]: Syntax error or access violation:
 1064 You have an error in your SQL syntax; check the manual that
 corresponds to your MySQL server version for the right syntax to use near
 'CONSTRAINT `PRIMARY KEY`'

 Any hints on this?

--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1711#comment:1>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper