mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
fix: ignore error on insert into PatchRun
This commit is contained in:
@@ -47,5 +47,14 @@ async function makeEntry(
|
||||
defaultFieldValueMap.failed = failed;
|
||||
defaultFieldValueMap.version = version;
|
||||
|
||||
await dm.db!.insert('PatchRun', defaultFieldValueMap);
|
||||
try {
|
||||
await dm.db!.insert('PatchRun', defaultFieldValueMap);
|
||||
} catch {
|
||||
/**
|
||||
* Error is thrown if PatchRun table hasn't been migrated.
|
||||
* In this case, PatchRun will migrated post pre-migration-patches
|
||||
* are run and rerun the patch.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user