NAME
DBIx::Migration::CLI - Seamless database up- and downgrades CLI
VERSION
0.16
SYNOPSIS
- dbix-migration [ -V | -h ]
- dbix-migration [ -v ] [ -u username ] [ -p password ] [ -s schema ] dsn [ directory [ version ] ]
DESCRIPTION
This script prints the current migration version if invoked with the dsn argument only. The script applies the migrations up to the given target version if the direction and version arguments are specified too. If the version is missing the latest migration version will be used.
OPTIONS
- -V Print version information and exit.
- -h Print long help message and exit.
- -v Print verbose information.
- -u username Set database username.
- -p password Set database password.
- -s schema Set tracking schema.
ARGUMENTS
- dsn Data source name.
- directory Directory that contains the migrations.
- version Version to migrate to. If not specified the latest migration will be taken.
METHODS
EXAMPLES
dbix-migration -s dbixm 'dbi:Pg:service=myapp;options=--search_path=myschema' ~/Projects/myapp/db/migrations 2
initiates a migration to the target version 2. The tracking schema is "dbixm". The managed schema is "myschema". The connection details are configured in a service file and extracted from there using the service name "myapp".
SEE ALSO
AUTHOR
Sebastian Riedel, <kraihx@gmail.com>
CONTRIBUTORS
Sven Willenbuecher, <sven.willenbuecher@gmx.de>
COPYRIGHT
Copyright 2004-2005 Sebastian Riedel. All rights reserved.
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.