8 lines
244 B
TypeScript
8 lines
244 B
TypeScript
|
export default abstract class Migration {
|
||
|
readonly version: number;
|
||
|
constructor(version: number);
|
||
|
shouldRun(currentVersion: number): Promise<boolean>;
|
||
|
abstract install(): Promise<void>;
|
||
|
abstract rollback(): Promise<void>;
|
||
|
}
|