1
0
mirror of synced 2025-02-21 06:33:14 +03:00

Added large Note/Warning on SchemaTool usage and assumptions

This commit is contained in:
Benjamin Eberlei 2010-08-31 23:23:05 +02:00
parent a6cdafe85c
commit d4489d1bdc

View File

@ -110,6 +110,17 @@ The following Commands are currently available:
++ Database Schema Generation
> **Note**
>
> SchemaTool can do harm to your database. It will drop or alter tables, indexes, sequences and such. Please use
> this tool with caution in development and not on a production server. It is meant for helping you develop your
> Database Schema, but NOT with migrating schema from A to B in production. A safe approach would be generating
> the SQL on development server and saving it into SQL Migration files that are executed manually on the production
> server.
>
> SchemaTool assumes your Doctrine Project uses the given database on its own. Update and Drop commands will
> mess with other tables if they are not related to the current project that is using Doctrine. Please be careful!
To generate your database schema from your Doctrine mapping files you can use the
`SchemaTool` class or the `schema-tool` Console Command.