oneuptime/Workers/DataMigrations/DataMigrationBase.ts
2023-06-21 14:20:00 +01:00

24 lines
555 B
TypeScript

import NotImplementedException from 'Common/Types/Exception/NotImplementedException';
export default class DataMigrationBase {
private _name: string = '';
public get name(): string {
return this._name;
}
public set name(v: string) {
this._name = v;
}
public constructor(name: string) {
this.name = name;
}
public async migrate(): Promise<void> {
throw new NotImplementedException();
}
public async rollback(): Promise<void> {
throw new NotImplementedException();
}
}