Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Internet > HTTP (WWW)

    nashvegas 0.7

    Download button

    No screenshots available
    Downloads: 323  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Patrick Altman | More programs
    MIT/X Consortium Lic... / FREE
    January 7th, 2012, 02:22 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    nashvegas description

    A management command for managing Django database migrations

    nashvegas' purpose is to enable a plug and play method for managing database changes.

    It really just abstracting out into a reusable app, a script that I have been using in a four person development team quite successfully for more than 6 months now.

    Database migrations is a large topic with a lot of different approaches. This approach worked well for my needs so I thought I'd put it out on the "Interwebs" and let the community judge it for it's usefulness.

    How to Use


     * Add the application to your PYTHON_PATH
     * Add the application to your INSTALLED_APPS list in your settings.py file.
     * Execute the command line:

    ./manage.py upgradedb --list|--execute [--path /path/to/scripts]

    Options

     * --list - Lists all the scripts that will need to be executed.
     * --execute - Executes all the scripts that need to be executed.
     * --path - The fully qualified path to the where the database scripts are located.

     This defaults to {{ PROJECT_PATH }}/db

    Conventions

    Part of the simplicity of this solution is based on the naming conventions of the sql scripts. They should be named:

     YYYYMMDD-##.sql


    Where YYYY is the 4 digit year, MM is the two digit month, and DD is the two digit day.

    A tabled called versions will be created in your database the first time this command executes. The rows in this table track which scripts have been executed. You should rarely if ever need to examine this table, or even be aware of its existence.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Django database | database migration | Django | database | migration



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM