visol / migrations
Enable SQL migration powered by Doctrine
Installs: 8 743
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 8
Forks: 0
Open Issues: 1
Type:typo3-cms-extension
Requires
- php: ~7.4.0 || ~8.0.0 || ~8.1.0
- doctrine/migrations: ^3.0
- typo3/cms-core: ^10.4 || ^11
This package is auto-updated.
Last update: 2024-12-11 14:27:22 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