Can you create a migration from an existing table using Doctrine?

Is it possible that the migration script will be automatically generated from the table schema in Doctrine?

For example, during intensive development of new features, I first create my tables at the time of writing the source code. I usually don't create a migration to run because the table definition might change as the feature is still in its infancy. After the function is ready to be committed, I will write about the migration to create the table structure for the new function. There will often be multiple new tables.

Call me lazy, but it would be great if these migrations were built automatically.

For example:

doctrine build-migration table_name

Is there something to achieve something like this?


source to share

1 answer

This (or something like that) is present in Doctrine 1.1, you can get the preview version from the Doctrine website.




All Articles