Skip to content

Schemas

Mitchell van Wijngaarden edited this page May 10, 2014 · 1 revision

Doctrine using entities for its migrations. This means that an entity represents the current state of that database table. This package provides three artisan commands to create, update and drop your database schema.

* doctrine:schema:create - Create database schema from models
* doctrine:schema:update - Update database schema to match models
* doctrine:schema:drop   - Drop database schema

It's possible to get the SQL that Doctrine was going to execute by using --sql when calling the command.