#52 ✓invalid
Guilherme Chapiewski

New option to check which version the model is at

Reported by Guilherme Chapiewski | June 22nd, 2009 @ 06:57 PM

Some tools to facilitate db migration check:

  • Check the current version of the model
  • Check if the model is at a specific version
  • Chack if the model is already at the last version (and return exit code 0 or 1)

Comments and changes to this ticket

  • Bernardo Heynemann

    Bernardo Heynemann July 14th, 2010 @ 05:57 PM

    • Milestone order changed from “0” to “0”

    Do you mean something like this:

    $ db-migrate --show-history

    Date From To
    10/10/2010 10:10 - 20101225000000
    10/10/2010 10:25 20101010084500 20101225000000
    10/10/2010 10:45 20101010084500 20101225000000

    Missing Migrations (in order):
    1 - 20101010084500
    2 - 20101010084500
    3 - 20101010084500

  • Bernardo Heynemann

    Bernardo Heynemann July 14th, 2010 @ 05:59 PM

    • Assigned user changed from “Guilherme Chapiewski” to “Bernardo Heynemann”
  • Guilherme Chapiewski

    Guilherme Chapiewski July 15th, 2010 @ 11:26 AM

    • Milestone order changed from “8” to “0”

    When I wrote this, I wanted to have tools that allowed us to analyze the database state without actually running the commands.

    I don't remember what the exit code thing is about, sorry...

    You know, if you think some of the tickets don't make sense (like this one, which is kinda weird), feel free to erase them. IMHO it's better to have less features that make sense than thousand weird/useless features :)

  • Wandenberg Peixoto

    Wandenberg Peixoto April 10th, 2012 @ 12:33 AM

    • State changed from “new” to “invalid”
    • Milestone cleared.
    • Milestone order changed from “4” to “0”

    As Guilherme said, there is no reason to add this feature until this moment

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

simple-db-migrate is a database migration tool inpired on Rails migrations. For more info check the project website: http://guilhermechapiewski.github.com/simple-db-migrate/

Pages