Scroll to navigation

PHINX(1) General Commands Manual PHINX(1)

NAME

phinxPHP database migration tool

SYNOPSIS

phinx -V | --version


phinx [-hnqv] [--help] [--no-interaction] [--quiet] [--verbose] [--[no-]ansi] [further options] command [arg ...]

DESCRIPTION

The phinx utility assists with using the Phinx database migration tool. This manual page is only an introduction for the utility written for Debian (but may be used by others) and not a substitute for its interactive help facility or the official documentation; the closest to a documentation for this utility is probably here: https://book.cakephp.org/3.0/en/phinx/commands.html

In general, phinx operates by calling a subcommand, which may or may not have their own (optional or required) options and arguments, in additions to a few global options, which are as follows (the descriptions were taken straight from the utility's on-line help messages):

, --help
Display the on-line help.
, --no-interaction
Do not ask any interactive question.
, --quiet
Do not output any message.
, --version
Show the application version and immediately exit (do not run any subcommand).
, --verbose
Increase the verbosity of messages. This option may be passed up to three times to increase verbosity: once for normal output, twice for more verbose output, and thrice for debugging output.
, --no-ansi
Force or disable, respectively, ANSI escape coloured output.

The subcommands are as follows:

Manage breakpoints
Create a new migration
Displays help for a command
Initialise the application for Phinx
Lists commands
Migrate the database
Rollback the last or to a specific migration
Create a new database seeder
Run database seeders
Show migration status
Verify the configuration file

Documentation for a specific subcommand can be retrieved with:
$ phinx help command

DIAGNOSTICS

The phinx utility exits with errorlevel 255 in Debian if the package composer is not installed, which is an optional dependency (“Recommends”). The status subcommand exits with errorlevel 0 if the database is up-to-date, 1 if there is at least one migration to execute, and 2 if a migration already run and recorded in the database is now missing. Other exit statuses are not documented. Please complain to upstream about this.

SEE ALSO

https://book.cakephp.org/3.0/en/phinx/commands.html

March 18, 2018 Debian