Return new version in downgrade()
This commit is contained in:
parent
01ab326e52
commit
90f53da088
@ -322,7 +322,7 @@ class SqliteMessageStorage implements SearchableMessageStorage {
|
|||||||
await this.delete_migrations_older_than(version);
|
await this.delete_migrations_older_than(version);
|
||||||
await this.update_version_in_db();
|
await this.update_version_in_db();
|
||||||
|
|
||||||
return _rollbacks.at(-1)!.version; // assert valid due to length guard above
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
async downgrade_to(version: number) {
|
async downgrade_to(version: number) {
|
||||||
|
Loading…
Reference in New Issue
Block a user