https://github.com/netlogix/netlogix.migrations.jobqueue
Asynchronously run netlogix/migrations
https://github.com/netlogix/netlogix.migrations.jobqueue
async flow jobqueue migration
Last synced: about 2 months ago
JSON representation
Asynchronously run netlogix/migrations
- Host: GitHub
- URL: https://github.com/netlogix/netlogix.migrations.jobqueue
- Owner: netlogix
- License: mit
- Created: 2021-01-14T15:41:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T15:37:10.000Z (over 1 year ago)
- Last Synced: 2024-03-14T18:01:46.457Z (about 1 year ago)
- Topics: async, flow, jobqueue, migration
- Language: PHP
- Homepage: https://websolutions.netlogix.de
- Size: 18.6 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Netlogix.Migrations.JobQueue
## About Netlogix Migrations
This package provides the ability to run migrations of the `netlogix/migrations` package ([Netlogix.Migrations](https://github.com/netlogix/Netlogix.Migrations)) asynchronously.
## Installation
`composer require netlogix/migrations-jobqueue`
## Configuration
To run a migration asynchronously, the Queue to be used needs to be defined:
```yaml
Netlogix:
Migrations:
JobQueue:
queueName: 'nlx-migrations'
```The queue (In this example `nlx-migrations`) must be configured in `Flowpack.JobQueue.Common` ([Check Github for more info](https://github.com/Flowpack/jobqueue-common))!
## Usage
Simply use the `AsyncMigration` interface in your migration:
```php