I am trying to figure out how to use the developer tools and the migration system. As others have pointed out, it seems problematic to rely on a versioning system like 1.0.0 when working with a larger team as version numbers between developers could overlap. The help for Phalcon Devtools (3.0.1) shows additional options for managing the migrations:
--desc=s Migration description (used for timestamp based migration),
--ts-based Timestamp based migration version, and
--log-in-db Keep migrations in the database table rather than in file.
I have tried using the
--ts-based option, but it did not seem to change anything in the way the Devtools handled migrations. I have not been able to find much help on these options in the docs. Has anyone else had any experience with them?
Also, the inital
generate call creates a 1.0.0 migration set, but there is no table create code. Does that mean I have to write the table create code by hand?