punktde / pt_migrations
TYPO3 extension which supports running db migrations based on doctrine
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 6
Type:typo3-cms-extension
Requires
- typo3/cms-core: >=6.2.0,<9.0
Requires (Dev)
- phpunit/phpunit: ~4.8.0
Replaces
- pt_migrations: 1.1
- typo3-ter/pt_migrations: 1.1
This package is auto-updated.
Last update: 2024-01-08 07:19:05 UTC
README
Installation
-
Install the extension as usual in TYPO3
-
Copy the file
Configuration.sample.yaml
toconfig/Configuration.yaml
where config is on the same level as your document root. -
Double check that
migrations_directory
contains valid relative paths from the document root to your folders which contain the migrations.
Running commands
Run TYPO3_CONTEXT=current_context ./migrate migrations:cmd
in bin folder.
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
.
List all commands
Run TYPO3_CONTEXT=current_context ./migrate list
in bin folder.
Show migration status
Run TYPO3_CONTEXT=current_context ./migrate migrations:status
in bin folder.
How to run a migration
Run TYPO3_CONTEXT=current_context ./migrate migrations:migrate
in bin folder.
How to add or delete version of migration table
Run TYPO3_CONTEXT=current_context ./migrate migrations:version
in bin folder.