custom filters

This commit is contained in:
davmar
2026-09-10 17:23:07 +02:00
parent 83295439d5
commit 2727f1baf2
15 changed files with 757 additions and 232 deletions
@@ -0,0 +1,21 @@
/// PocketBase migration: half_width on home_filter_widgets.
///
/// Apply after 1740000004 if that collection already exists.
migrate((app) => {
const col = app.findCollectionByNameOrId("home_filter_widgets");
col.fields.add({
type: "bool",
name: "half_width",
required: false,
});
app.save(col);
}, (app) => {
try {
const col = app.findCollectionByNameOrId("home_filter_widgets");
const field = col.fields.getByName("half_width");
if (field) {
col.fields.remove(field);
app.save(col);
}
} catch (_) {}
});