Add an API interface for performing DB migrations as required
This commit is contained in:
parent
2567f5fb62
commit
1e007af52a
6 changed files with 83 additions and 0 deletions
|
|
@ -31,4 +31,9 @@ export class NilDatabase extends Database {
|
|||
static async registerListeners() {};
|
||||
static async triggerListeners() {};
|
||||
static async unregisterListeners() {};
|
||||
|
||||
// MARK: Migrations
|
||||
static async canPerformMigration() { return true };
|
||||
static async requiresMigrationFrom() { return false };
|
||||
static async migrateData() {};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue