If you are using symfony 1.3/1.4 you can add it to your schema.yml and use the doctrine:generate-migrations-diff task.
config/doctrine/schema.yml [code] columns: ... my_column: type: enum values: [SomeValue, SomeOtherValue] default: SomeValue ... [/code] If you are using MySQL and you want to use the native ENUM type then you also need to set that in your config/databases.yml: [code] all: doctrine: class: sfDoctrineDatabase param: dsn: mysql:host=localhost;dbname=database username: username password: password attributes: use_native_enum: true [/code] On Jan 18, 6:09 am, ruigoncalves <skcra...@gmail.com> wrote: > Hi there! > > Can anyone please tell me how can I create a new column of type enum > to implement a Doctrine Migration? > > Thanks in advance, > Best regards
-- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.