@emigrate/types
Advanced tools
Comparing version 0.11.0 to 0.12.0
@@ -243,25 +243,8 @@ export type Awaitable<T> = T | PromiseLike<T>; | ||
/** | ||
* Called when a migration is about to be removed from the migration history. | ||
* | ||
* This is only called when the command is 'remove'. | ||
*/ | ||
onMigrationRemoveStart(migration: MigrationMetadata): Awaitable<void>; | ||
/** | ||
* Called when a migration is successfully removed from the migration history. | ||
* | ||
* This is only called when the command is 'remove'. | ||
*/ | ||
onMigrationRemoveSuccess(migration: SuccessfulMigrationMetadata): Awaitable<void>; | ||
/** | ||
* Called when a migration couldn't be removed from the migration history. | ||
* | ||
* This is only called when the command is 'remove'. | ||
*/ | ||
onMigrationRemoveError(migration: FailedMigrationMetadata, error: Error): Awaitable<void>; | ||
/** | ||
* Called when a migration is about to be executed. | ||
* | ||
* Will only be called for each migration when the command is "up". | ||
* Will be called for each migration when the command is "up", | ||
* or before removing each migration from the history when the command is "remove". | ||
* | ||
* @param migration Information about the migration that is about to be executed. | ||
* @param migration Information about the migration that is about to be executed/removed. | ||
*/ | ||
@@ -272,3 +255,4 @@ onMigrationStart(migration: MigrationMetadata): Awaitable<void>; | ||
* | ||
* Will be called after a successful migration when the command is "up" | ||
* Will be called after a successful migration when the command is "up", | ||
* or after a successful removal of a migration from the history when the command is "remove", | ||
* or for each successful migration from the history when the command is "list". | ||
@@ -282,3 +266,4 @@ * | ||
* | ||
* Will be called after a failed migration when the command is "up" | ||
* Will be called after a failed migration when the command is "up", | ||
* or after a failed removal of a migration from the history when the command is "remove", | ||
* or for each failed migration from the history when the command is "list" (will be at most one in this case). | ||
@@ -285,0 +270,0 @@ * |
{ | ||
"name": "@emigrate/types", | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45761
310