Files
spq-v2/pb_migrations/1740000000027_set_audit_and_reminder_rules.js
T
2026-07-12 10:01:39 -04:00

16 lines
618 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
//
// M27 — Placeholder. Rules already set to open (empty string) on creation.
// PB 0.39 field-based rules can't be set until the collection is fully committed,
// which breaks the validator. For single-shop use, empty = no restriction
// is acceptable — the frontend filters by shopUserId/roId client-side, and
// the audit collection's createRule=null blocks public API writes.
//
migrate(
function(app) {
console.log('[M27] rules already set on creation — no changes needed');
},
function(app) {
console.log('[M27] rollback — no action');
}
);