fix migrations?
Some checks failed
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 1m45s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 11s
CI/CD Pipeline / Deploy to Kubernetes (push) Failing after 5m9s

This commit is contained in:
yohlo
2026-02-08 23:21:21 -06:00
parent 1e3eaf0c35
commit c4bf13744c

View File

@@ -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,