pt_migrations
Installation
-
Install the extension as usual in TYPO3, (*1)
-
Copy the file Configuration.sample.yaml to config/Configuration.yaml where config is on the same level as your document root., (*2)
-
Double check that migrations_directory contains valid relative paths from the document root to your folders which contain the migrations., (*3)
Running commands
Run TYPO3_CONTEXT=current_context ./migrate migrations:cmd in bin folder., (*4)
current_context has to be the context node name from your configuration file.
F.e. Development/Vagrant.
cmd can currently be status, migrate or version., (*5)
List all commands
Run TYPO3_CONTEXT=current_context ./migrate list in bin folder., (*6)
Show migration status
Run TYPO3_CONTEXT=current_context ./migrate migrations:status in bin folder., (*7)
How to run a migration
Run TYPO3_CONTEXT=current_context ./migrate migrations:migrate in bin folder., (*8)
How to add or delete version of migration table
Run TYPO3_CONTEXT=current_context ./migrate migrations:version in bin folder., (*9)
Further resources