swaf/dist/db/Migration.d.ts
2020-04-22 17:49:58 +02:00

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>;
}