PHPackages                             jeckerson/phalcon-migrations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. jeckerson/phalcon-migrations

ActiveLibrary[Framework](/categories/framework)

jeckerson/phalcon-migrations
============================

Run and Generate DB Migrations with Phalcon Framework

v3.0.1(3y ago)29926[29 issues](https://github.com/Jeckerson/phalcon-migrations-generator/issues)[5 PRs](https://github.com/Jeckerson/phalcon-migrations-generator/pulls)BSD-3-ClausePHPPHP &gt;=7.4CI passing

Since Oct 31Pushed 1w ago12 watchersCompare

[ Source](https://github.com/Jeckerson/phalcon-migrations-generator)[ Packagist](https://packagist.org/packages/jeckerson/phalcon-migrations)[ Docs](https://phalcon.io)[ GitHub Sponsors](https://github.com/phalcon)[ Fund](https://opencollective.com/phalcon)[ RSS](/packages/jeckerson-phalcon-migrations/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (14)Versions (35)Used By (0)

Phalcon Migrations
==================

[](#phalcon-migrations)

[![Discord](https://camo.githubusercontent.com/28c6fc95b5decf0e67719a5438501589c00b2db2b15228e67479d6548bbc9f6b/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3331303931303438383135323337353239373f6c6162656c3d446973636f7264)](http://phalcon.io/discord)[![Packagist Version](https://camo.githubusercontent.com/d287b88d1b302aa8bfb23149a8f139eb7d9b1b89658afbb7455215c231312bcc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068616c636f6e2f6d6967726174696f6e73)](https://packagist.org/packages/phalcon/migrations)[![PHP from Packagist](https://camo.githubusercontent.com/b44ff9e3bb153d36cdfb7dd40d7545bbd38e1c4b4efd0af3de780d7e2e97f104/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7068616c636f6e2f6d6967726174696f6e73)](https://packagist.org/packages/phalcon/migrations)[![codecov](https://camo.githubusercontent.com/34ca924016bf0ad01091487b0769a0fcdcc9c10d83c2ae3b55340d12d0c8e3ea/68747470733a2f2f636f6465636f762e696f2f67682f7068616c636f6e2f6d6967726174696f6e732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/phalcon/migrations)[![Packagist](https://camo.githubusercontent.com/c0843551ca4594781aef12e170994f7b084d2fbb1135437b61e0f7a175c1b6b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f7068616c636f6e2f6d6967726174696f6e73)](https://packagist.org/packages/phalcon/migrations/stats)

Generate or migrate database changes via migrations.
Main idea of Phalcon migrations is to automatically detect changes and morphing without writing manual migrations.

Full documentation
------------------

[](#full-documentation)

[Phalcon Documentation - Database Migrations](https://docs.phalcon.io/latest/en/db-migrations)

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- Phalcon &gt;= 5.0.0
- PHP ext-posix (Linux)

Installing via Composer
-----------------------

[](#installing-via-composer)

```
composer require --dev phalcon/migrations

```

Quick start
-----------

[](#quick-start)

What you need for quick start:

- Configuration file (ex: `migrations.php`) in root of your project (you can also pass them as parameters inside CLI environment)
- Create database tables structure
- Execute command to generate migrations

After that you can execute that migrations (run) in another environment to create same DB structure.

### Create configuration file

[](#create-configuration-file)

Configuration filename can be whatever you want.

```
