domaino/pocketbase/pb_migrations
agent dc8c58f4c2 Schema: explicit size limits on JSON fields
pb_schema.json had six JSON field limits under `options.maxSize`, which
PocketBase ignores since 0.23, so those fields used PocketBase's default.
That default dropped to 1MB in 0.29: on 0.40 a 1.5MB page that 0.23
saved is refused. Move the limits to the field's top level and add a
migration that sets them on existing installs (pages/email blocks 2MB,
globals 1MB, event categories 200KB, customer details 100KB).

Tested on 0.40.6: existing install (migration applied, 1.5MB page saves,
2.5MB refused at 2MB) and fresh install + pb_schema.json import; both
end with identical schemas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gX7xH4zwYTr5vE7mf8
2026-11-03 09:43:49 +00:00
..
1791244800_lock_rules_dates_unique.js PocketBase: close public sign-up, lock commerce writes, add dates/unique keys 2026-10-06 10:55:12 +00:00
1791331200_lock_order_lines.js Lock order_lines writes (they were public) 2026-10-06 12:34:51 +00:00
1792800000_items_buffer_minutes.js Services: per-service get-ready time (items.bufferMinutes) 2026-10-24 07:41:17 +00:00
1792800100_slot_capacity_and_line_holds.js Shop: places per slot, and bookings block overlapping slots 2026-10-24 08:26:37 +00:00
1793000000_orders_anonymise.js Customers page: export, correct and erase personal data; automatic retention 2026-10-24 10:44:45 +00:00
1793100000_durations_and_time_windows.js Windows: choose the start-time step (10–60 min, default 30) 2026-10-25 21:03:40 +00:00
1793200000_bundles_and_passes.js Stock: items.trackStock, so an empty stock really means unlimited 2026-10-25 21:39:51 +00:00
1793300000_text_blocks_visual_editor.js Visual text editor; Cards, FAQ and HTML blocks; block anchors 2026-10-26 12:58:15 +00:00
1793400000_json_field_limits.js Schema: explicit size limits on JSON fields 2026-11-03 09:43:49 +00:00