An open API service indexing awesome lists of open source software.

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

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