swaf/dist/db/Migration.d.ts

8 lines
244 B
TypeScript
Raw Normal View History

2020-04-22 15:52:17 +02:00
export default abstract class Migration {
readonly version: number;
constructor(version: number);
shouldRun(currentVersion: number): Promise<boolean>;
abstract install(): Promise<void>;
abstract rollback(): Promise<void>;
}