ikto / pgi-migration-directories
The tool for installing/removing/upgrading/downgrading PgSQL schemas (connection adapter for PgI)
v1.0.0
2021-06-04 23:00 UTC
Requires
- php: >=7.1
- ikto/pg-migration-directories: ~1.0
- ikto/pgi: ~1.0
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is not auto-updated.
Last update: 2024-09-21 14:34:43 UTC
README
In the past it was a standalone library for applying db migrations using PgI. Now it is a connection adapter for Pg Migration Directories.
Requirements (environment)
- PHP 7.1 or higher
- PgI library
- Pg Migration Directories library
How to use
use IKTO\PgI; use IKTO\PgiMigrationDirectories\Adapter\PgiConnectionAdapter; // Connecting to the database. $dbh = PgI::connect('host=127.0.0.1 port=5432 dbname=pgi_test', 'postgres', 'postgres'); $connection_adapter = new PgiConnectionAdapter($dbh); // ... and the pass connection adapter to managed db object