Calendar — Deployment
Migrate-only
bash
php artisan migrateCreates calendar_events, registers the calendar catalog module (default-included CRM), and grants missing default-role permissions (calendar.view|create|update|delete|view_all).
Do not rely on db:seed in production for catalog/RBAC.
Smoke
- Confirm marketplace module
calendarexists and is installed on a test workspace. - Owner:
GET /api/tenant/v1/calendar/events→ 200. - Create event → appears on Week (default), Day, Month, and Agenda.
- On Week/Day, drag an event to a new slot → persists after refresh (
PUTsucceeds; toast “Event rescheduled”). - Staff without
view_allcannot list another user’s events. - Dashboard includes
calendarupcoming widget when entitled.
Rollback note
Catalog/permission data migrations are intentionally irreversible; use a forward migration to retire the module if required.