Skip to main content

No project description provided

Project description

py-db-migrate

CLI migration tool for python.

Usage:

$ py-db-migrate [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • create: Create a new sql file.
  • down: Delete the latest migration file by using...
  • init: Create an initial configuration file.
  • start: Create an initial configuration file.
  • up: Run the new migration files.

py-db-migrate create

Create a new sql file.

Usage:

$ py-db-migrate create [OPTIONS] NAME

Arguments:

  • NAME: [required]

Options:

  • --help: Show this message and exit.

py-db-migrate down

Delete the latest migration file by using down file.

Usage:

$ py-db-migrate down [OPTIONS]

Options:

  • --help: Show this message and exit.

py-db-migrate init

Create an initial configuration file.

You need to update this configuration file.

Usage:

$ py-db-migrate init [OPTIONS]

Options:

  • --help: Show this message and exit.

py-db-migrate start

Create an initial configuration file.

You need to update this configuration file.

Usage:

$ py-db-migrate start [OPTIONS]

Options:

  • --help: Show this message and exit.

py-db-migrate up

Run the new migration files.

Usage:

$ py-db-migrate up [OPTIONS]

Options:

  • --help: Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_db_migrate-0.2.0.tar.gz (9.1 kB view hashes)

Uploaded source

Built Distribution

py_db_migrate-0.2.0-py3-none-any.whl (14.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page