php - Extra changeColumns in Doctrine generate-migrations-diff -
I am generating migration between different yaml schema files: i.e. running:
symphony Principle: Generated - Migrations-diff
and the resulting migration file has a complete number of changes in column calls which were not included in the final schema file.
For example, if you run Generate-Migration - whatever changes your schema file changes, you should get blank () function. However, the result for me is a change call column for almost every table in my database.
Am I doing something wrong or is this a bug?
Generate-migration-diff does not separate two different yaml files; it actually does not separate your model and its Compares the yaml file and then generates the migration based on the difference. If you are in sync with your yaml and classes, then your workflow should change the schema:
- Change the yaml file
- Generate - Migration-FIF To separate your current (replaceable) model with its (unchanged) model, it will generate a migration file in your principle / migration directory (or whichever migration_pad is set in its own form of principle).
- Migrate to modify the migration created in step 2 and modify your database
- To generate new classes based on your yaml file gener-models-yaml . When you go, you specify the model you generated (model theory in its theory).
- To generate a SQL file Generate-SQL it will be where your theory is set to the sql_path config.
Comments
Post a Comment