#1377: enum problem
-------------------------+--------------------------------------------------
  Reporter:  tester      |       Owner:  jwage                
      Type:  defect      |      Status:  new                  
  Priority:  minor       |   Milestone:  Unknown              
 Component:  Attributes  |     Version:  1.0                  
Resolution:              |    Keywords:                       
  Has_test:  0           |    Mystatus:  Pending Core Response
 Has_patch:  0           |  
-------------------------+--------------------------------------------------
Old description:

> hey
>
> i just updated doctrine with latest version and sandbox doesn't work any
> more with enums
>
> i got this schema (using mysql 5.1):
>

> Test:
>     options:
>         type: MYISAM
>     columns:
>         text_align:
>             type: enum
>             values: ['left', 'center', 'right']
>             default: 'left'
>         text_font:
>             type: enum
>             values: ['verdana', 'arial', 'times', 'georgia']
>             default: 'georgia'
>

> sql generated from schema is the following:
>
> CREATE TABLE test (id BIGINT AUTO_INCREMENT, text_align VARCHAR(255)
> DEFAULT left, text_font VARCHAR(255) DEFAULT georgia, PRIMARY KEY(id))
> ENGINE = MYISAM;
>
> and the build-all-reload fails in sand box because of this. there are
> some missing '' for default values
>
> thanx again
> paul

New description:

 hey

 i just updated doctrine with latest version and sandbox doesn't work any
 more with enums

 i got this schema (using mysql 5.1):


 Test:
     options:
         type: MYISAM
     columns:
         text_align:
             type: enum
             values: ['left', 'center', 'right']
             default: 'left'
         text_font:
             type: enum
             values: ['verdana', 'arial', 'times', 'georgia']
             default: 'georgia'


 sql generated from schema is the following:

 CREATE TABLE test (id BIGINT AUTO_INCREMENT, text_align VARCHAR(255)
 DEFAULT left, text_font VARCHAR(255) DEFAULT georgia, PRIMARY KEY(id))
 ENGINE = MYISAM;

 and the build-all-reload fails in sand box because of this. there are some
 missing ' ' for default values

 thanx again
 paul

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1377#comment:1>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to