fix migrations?
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_4251874343");
|
||||
|
||||
return app.delete(collection);
|
||||
try {
|
||||
const collection = app.findCollectionByNameOrId("pbc_4251874343");
|
||||
return app.delete(collection);
|
||||
} catch (e) {
|
||||
console.log("Collection pbc_4251874343 not found, skipping deletion");
|
||||
return null;
|
||||
}
|
||||
}, (app) => {
|
||||
const collection = new Collection({
|
||||
"createRule": null,
|
||||
|
||||
Reference in New Issue
Block a user