oneuptime/Worker/DataMigrations/DataMigrationBase.ts

24 lines
513 B
TypeScript
Raw Normal View History

import NotImplementedException from "Common/Types/Exception/NotImplementedException";
2024-01-11 10:49:55 +00:00
export default class DataMigrationBase {
private _name: string = "";
public get name(): string {
return this._name;
}
public set name(v: string) {
this._name = v;
}
2024-01-11 10:49:55 +00:00
public constructor(name: string) {
this.name = name;
}
2024-01-11 10:49:55 +00:00
public async migrate(): Promise<void> {
throw new NotImplementedException();
}
2024-01-11 10:49:55 +00:00
public async rollback(): Promise<void> {
throw new NotImplementedException();
}
2024-01-11 10:49:55 +00:00
}