Search code examples
ormsymfonydoctrine-ormproduction-environment

Symfony2 - doctrine:create in Production


When using the command:

$ php app/console doctrine:schema:create

We get this message

ATTENTION: This operation should not be executed in a production environment.

Why shouldn't we use it in production ?
How should we do the first deployment ?


Solution

  • Ahaha there are different schools for that.

    Personally I use the first method, which works just fine. You could always do a --dump-sql to see what's going on before updating using --force