visol/migrations

Enable SQL migration powered by Doctrine

Installs: 6 498

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 8

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

4.1.0 2022-11-07 20:01 UTC

This package is auto-updated.

Last update: 2024-05-07 23:16:31 UTC


README

This is a TYPO3 extension that integrates the doctrine migration tool.

Installation

Install the extension with composer. For the time being it is required to declare manually the git repository.

"repositories": [
  {
    "type": "git",
    "url": "https://github.com/visol/ext-migrations.git"
  }
],
composer require visol/migrations

After installing the extension, you might consider overriding the path to the configuration file in the extension manager of TYPO3.

The default configuration file is to be found in EXT:migrations/Configuration/migrations.php

Usage

 migrations
  migrations:dump                    Dump the schema for your database to a migration.
  migrations:generate                Generate a blank migration class.
  migrations:latest                  Outputs the latest version
  migrations:list                    Display a list of all available migrations and their status.
  migrations:migrate                 Execute one or more migration versions up or down manually.
  migrations:rollup                  Rollup migrations by deleting all tracked versions and insert the one version that exists.
  migrations:status                  View the status of a set of migrations.
  migrations:version                 Manually add and delete migration versions from the version table.

To get started, we can recommend executing the command migrations:generate. It will generate a default migration skeleton file.

Credits

Source of inspiration and first implementation from Kai Strobach https://git.kay-strobach.de/typo3/migrations