Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mindyphp/migrationmanager

Migration manager for Mindy ORM
https://github.com/mindyphp/migrationmanager

migration mindy-orm php

Last synced: 11 days ago
JSON representation

Migration manager for Mindy ORM

Awesome Lists containing this project

README

        

# Migration Manager

[![Build Status](https://travis-ci.org/MindyPHP/MigrationManager.svg?branch=dev)](https://travis-ci.org/MindyPHP/MigrationManager)
[![codecov](https://codecov.io/gh/MindyPHP/MigrationManager/branch/master/graph/badge.svg)](https://codecov.io/gh/MindyPHP/MigrationManager)

## Установка

```bash
composer require mindy/migration-manager --prefer-dist
```

## Использование

```php
'sqlite:///:memory:']);
$manager = MigrationFactory::createManager($connection, 'application', __DIR__.'/Migrations', '\\Application\Migrations');

// Generate new migration
$migrationPath = $manager->generateMigration();
echo $migrationPath . PHP_EOL;

// Migrate
$manager->doMigrate();
```