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

This package is not auto-updated.

Last update: 2024-09-21 14:34:43 UTC


README

Build Status

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)

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