Wasim Pathan
Wasim Pathan

Reputation: 420

Generating database in Symfony2

How to generate a database from Symfony's existing code through command line ?

we have an existing code with us we need to do a type of reverse engineering to generate the database tables related to that code we have tried commands like:

php app/console doctrine:schema:update --force

We are new to Symfony....!

Upvotes: 1

Views: 146

Answers (2)

dsuma
dsuma

Reputation: 1010

app/console doctrine:database:create then followed by app/console doctrine:schema:update --force

Upvotes: 3

Lazy Ants
Lazy Ants

Reputation: 27

php app/console doctrine:schema:update --force is the right one also you can dump sql queries with --dump-sql

Upvotes: 1

Related Questions