Download the PHP package davidburger/pgup without Composer
On this page you can find all versions of the php package davidburger/pgup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download davidburger/pgup
More information about davidburger/pgup
Files in davidburger/pgup
Download davidburger/pgup
More information about davidburger/pgup
Files in davidburger/pgup
Vendor davidburger
Package pgup
Short Description PHP PostgreSQL database migration tool
License Apache-2.0
Homepage https://github.com/davidburger/pgup
Package pgup
Short Description PHP PostgreSQL database migration tool
License Apache-2.0
Homepage https://github.com/davidburger/pgup
Please rate this library. Is it a good library?
Informations about the package pgup
Simple PHP Postgres database migration tool
Useful for synchronization of database changes within development team.
Installation
Prerequisities
-
psql client must be installed
- PDO_PGSQL driver is required for sync_mode = 'database'
Setup
-
if
<project_root>/migrations
folder does not exist, it will be created with initial config file - edit database credentials in
<project_root>/migrations/config/global.php
Basic principles
- password for individual hosts are stored in ~.pgpass - see http://www.postgresql.org/docs/9.5/interactive/libpq-pgpass.html
- if ~/.pgpass does not exist, it is created automatically
- sql files could be successfully processed only once for given environment - they are checked for their equivalent stored in "applied" folder (sync_mode = filesystem) or in the database table "migration" (sync_mode = database)
- output is written to the path defined by 'log_dir' configuration variable
Usage
-
create empty sql migration file from template:
-
process migration files:
- process migration files for specific environment:
All versions of pgup with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.3
The package davidburger/pgup contains the following files
Loading the files please wait ....