Skip to content

Commit

Permalink
adding database option.
Browse files Browse the repository at this point in the history
Allows user to choose which database the migrations
are run on.
  • Loading branch information
Matt George committed Jan 27, 2011
1 parent 9268f34 commit 0b5aa6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nashvegas/management/commands/upgradedb.py
Expand Up @@ -38,6 +38,9 @@ class Command(BaseCommand):
make_option("-s", "--seed", action = "store_true",
dest = "do_seed", default = False,
help = "Seed nashvegas with migrations that have previously been applied in another manner."),
make_option('--database', action='store', dest='database',
default=DEFAULT_DB_ALIAS, help='Nominates a database to synchronize. '
'Defaults to the "default" database.'),
make_option("-p", "--path", dest = "path",
default = os.path.join(
os.path.dirname(
Expand Down

0 comments on commit 0b5aa6c

Please sign in to comment.