Add support for jobs & queueables, migrations
- Create migration directives & migrators - Modify Cache classes to support array manipulation - Create Redis unit and RedisCache implementation - Create Queueable base class and Queue class that uses Cache backend
This commit is contained in:
@@ -3,8 +3,8 @@ import {Container, Inject, Injectable} from '../../di'
|
||||
import {EventBus} from '../../event/EventBus'
|
||||
import {Migrator} from '../migrations/Migrator'
|
||||
import {Migrations} from '../services/Migrations'
|
||||
import {RollingBackMigrationEvent} from '../migrations/events/RollingBackMigrationEvent'
|
||||
import {RolledBackMigrationEvent} from '../migrations/events/RolledBackMigrationEvent'
|
||||
// import {RollingBackMigrationEvent} from '../migrations/events/RollingBackMigrationEvent'
|
||||
// import {RolledBackMigrationEvent} from '../migrations/events/RolledBackMigrationEvent'
|
||||
import {EventSubscription} from '../../event/types'
|
||||
import {NothingToMigrateError} from '../migrations/NothingToMigrateError'
|
||||
|
||||
@@ -85,13 +85,13 @@ export class RollbackDirective extends Directive {
|
||||
* @protected
|
||||
*/
|
||||
protected async registerListeners(): Promise<void> {
|
||||
this.subscriptions.push(await this.bus.subscribe(RollingBackMigrationEvent, event => {
|
||||
this.info(`Rolling-back migration ${event.migration.identifier}...`)
|
||||
}))
|
||||
|
||||
this.subscriptions.push(await this.bus.subscribe(RolledBackMigrationEvent, event => {
|
||||
this.success(`Rolled-back migration: ${event.migration.identifier}`)
|
||||
}))
|
||||
// this.subscriptions.push(await this.bus.subscribe(RollingBackMigrationEvent, event => {
|
||||
// this.info(`Rolling-back migration ${event.migration.identifier}...`)
|
||||
// }))
|
||||
//
|
||||
// this.subscriptions.push(await this.bus.subscribe(RolledBackMigrationEvent, event => {
|
||||
// this.success(`Rolled-back migration: ${event.migration.identifier}`)
|
||||
// }))
|
||||
}
|
||||
|
||||
/** Remove event bus listeners before finish. */
|
||||
|
||||
Reference in New Issue
Block a user