The CLI application for managing SQL migrations.
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
Release history Release notifications | RSS feed
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.3.1.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for py_db_migrate-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 490061b987b66ed05552fc8817be4968dfc680d96cd9330d440a14e5d9b3d431 |
|
MD5 | 50972167f95751aaa5609bb6bcf0ec67 |
|
BLAKE2b-256 | 99ef1f91faff2e8a4ebb699ab8d836e946e746b09178cdc1b6c015db3bb08560 |