For symfony 1.3, ...

Add a real deployment task incl. migrations

210 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    anonymousanonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • simon.castsimon.cast commented  ·   ·  Flag as inappropriate

        I think a solid deployment task would be a great boon. Particularly if it can be used as part of continuous integration and continuous deployment. Could a Symfony Installation with a plugin act as the CI server and manage the deployment?

        As part of the deployment task I would like to see the DB migration task to auto-create the migration class based on what has changed in the model, without having to manually create it. I see this working as follows:
        1) Base migration modules are created using doctrine:generate-migrations-db
        2) Next a task is run (call it doctrine:generate-migrations-update) that compares the base migration modules to current DB/model/schema and generates migration modules that update the base modules
        3) Deployment task looks for new delta migration modules and calls the modules once all the new code is up

      Feedback and Knowledge Base