https://github.com/koninklijke-collective/koning_phinx
TYPO3 Extension: Phinx.org integration for Database Migrations
https://github.com/koninklijke-collective/koning_phinx
database-migrations migrations phinx typo3 typo3-cms typo3-cms-extension
Last synced: 5 months ago
JSON representation
TYPO3 Extension: Phinx.org integration for Database Migrations
- Host: GitHub
- URL: https://github.com/koninklijke-collective/koning_phinx
- Owner: koninklijke-collective
- Created: 2017-02-08T16:30:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-15T09:09:28.000Z (about 6 years ago)
- Last Synced: 2024-04-26T23:40:41.406Z (about 2 years ago)
- Topics: database-migrations, migrations, phinx, typo3, typo3-cms, typo3-cms-extension
- Language: PHP
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TYPO3 Extension: Phinx Integration
* Description: Phinx.org integration for Database Migrations
* Extension key: koning_phinx
* TER: http://typo3.org/extensions/repository/view/koning_phinx
Howto
-----
Configure the extension as you would like; like example below:
```php
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['koning_phinx'] = [
// Define paths outside PATH_site root
'path_migrations' => '../database/migrations',
'path_seeds' => '../database/seeds',
// Enable extension migrations/seeds:Careful, this enables extension migrations! All enabled extensions with EXT:extension/Phinx/{Migrations,Seeds} directories.
'include_extension_directories' => true,
];
```
Usage
-----
You can use all the Phinx features with the following command;
```bash
# Get all options
php typo3/cli_dispatch.phpsh koning_phinx list
# Invoke migrations
php typo3/cli_dispatch.phpsh koning_phinx migrate
# Create migration
php typo3/cli_dispatch.phpsh koning_phinx create SpecifyYourSpecificChangeAsTitle
# Display status of all migrations
php typo3/cli_dispatch.phpsh koning_phinx status
# Invoke seeds
php typo3/cli_dispatch.phpsh koning_phinx seed:run
# Create seed
php typo3/cli_dispatch.phpsh koning_phinx seed:create YourSeedTitle
```