Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mindyphp/migrationmanager
- Owner: MindyPHP
- Created: 2017-12-23T10:24:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T15:11:39.000Z (almost 7 years ago)
- Last Synced: 2024-12-11T05:38:55.330Z (12 days ago)
- Topics: migration, mindy-orm, php
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
```