You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lib/src/orm/migrations/events/MigrationEvent.ts

19 lines
411 B

import {Migration} from '../Migration'
import {BaseEvent} from '../../../support/bus'
import {Awaitable} from '../../../util'
/**
* Generic base-class for migration-related events.
*/
export abstract class MigrationEvent extends BaseEvent {
constructor(
public readonly migration: Migration,
) {
super()
}
shouldBroadcast(): Awaitable<boolean> {
return false
}
}