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 performed in a production environment.

Why should not we use it in production?
How should we perform the first deployment?

+7
source share
1 answer

Ahaha there are different schools for this.

Personally, I use the first method, which works fine. You can always do -dump-sql to find out what happens before the update using -force

+7
source

All Articles