Skip to content

Introduction

What Phalcon Migrations is, what it needs, and how to install it.

Package git repository

https://github.com/phalcon/migrations

Requirements

  • PHP >= 8.2
  • The PDO extension and the PDO driver for your database: pdo_mysql, pdo_pgsql or pdo_sqlite
  • The yaml extension, only if you use a YAML configuration file
  • The posix extension (optional, Linux and macOS). Without it, the output has no colors.

Supported databases

Database adapter value Notes
MySQL mysql Default port: 3306. The connection uses the charset value of the configuration. Default: utf8mb4.
PostgreSQL postgresql Default port: 5432. Default schema: public.
SQLite sqlite The dbname value is the path to the database file.

The adapter value is not case-sensitive.

Installing via Composer

composer require --dev phalcon/migrations

Using the PHAR

Each release on GitHub has a phalcon-migrations.phar file. Download it from the releases page. Run it with PHP:

php phalcon-migrations.phar list

The PHAR accepts the same arguments and options as vendor/bin/phalcon-migrations.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close