https://github.com/ikto/pgi-migration-directories
https://github.com/ikto/pgi-migration-directories
migrate-database migrations postgresql
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ikto/pgi-migration-directories
- Owner: ikto
- Created: 2018-04-17T22:36:12.000Z (about 8 years ago)
- Default Branch: dev
- Last Pushed: 2021-06-04T23:07:24.000Z (about 5 years ago)
- Last Synced: 2025-10-28T12:45:04.076Z (8 months ago)
- Topics: migrate-database, migrations, postgresql
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PgI Migration Directories
[](https://travis-ci.org/ikto/pgi-migration-directories)
In the past it was a standalone library for applying db migrations using [PgI](https://github.com/ikto/pgi).
Now it is a connection adapter for [Pg Migration Directories](https://github.com/ikto/pg-migration-directories).
## Requirements (environment)
- PHP 7.1 or higher
- [PgI](https://github.com/ikto/pgi) library
- [Pg Migration Directories](https://github.com/ikto/pg-migration-directories) library
## How to use
```php
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
```