---
title: "Introduction"
description: "What Phalcon Migrations is, what it needs, and how to install it."
version: "5.0"
---

> Documentation Index
> Fetch the complete documentation index at: https://migrations.phalcon.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

:::info[NOTE]
Phalcon migrations have been removed from DevTools and moved to a separate repository.
:::

## 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.

:::info[NOTE]
Since version 4.0.0, the package does not use the Phalcon extension. It has its own database layer, which uses PDO.
:::

## 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.

:::warning[WARNING]
SQLite cannot do some changes with `ALTER TABLE`. When a migration changes an existing SQLite table, the package ignores these changes:

* Modify a column, for example its type, its size, `NOT NULL` or its default. A rename of a column works. See [Renamed columns](/5.0/migration-files#renamed-columns).
* Add or drop a primary key
* Add or drop a foreign key

SQLite adds a new column at the end of the table. It ignores `first` and `after`.

To make these changes, drop the table and create it again. A new SQLite table gets its primary key and its foreign keys in the `CREATE TABLE` statement. A primary key of more than one column keeps the order of the key.
:::

## 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](https://github.com/phalcon/migrations/releases). Run it with PHP:

```
php phalcon-migrations.phar list
```

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

Source: https://migrations.phalcon.io/5.0/introduction/index.mdx
