Skip to main content
FaPost separates two database scopes, and almost every tenancy operation reduces to knowing which one you are acting on. Tenant migrations are not run once. They run per tenant, which is why adding a tenant and deploying a release both end in the same place.

Seeing what is pending

Reports pending landlord migrations and pending migrations for the default local tenant, without running anything. Use it before a release to see what a deployment would apply.

Applying migrations

Landlord migrations run through Laravel’s own migrator. Tenant migrations run for every active tenant:
A release that adds a tenant migration is not deployed until this has run. The application will start, the landlord schema will be current, and the first request into a tenant whose schema is behind will fail on a missing column.
Order matters: landlord first, then tenants. See Upgrading and rollback for how this fits into a release.

Permissions and roles

Runs TenantAclSeeder — domain permissions and default roles — for selected active tenants. A new tenant needs this before anyone can be given meaningful access; an existing tenant needs it again when a release introduces new permissions.

Webhook routing per tenant

Webhook routing resolves through Redis rather than the landlord database, so that inbound traffic never waits on platform storage. That makes the registry a cache with a source of truth behind it, and caches drift.
Checks Redis against the database, and can repair what it finds.
Write-through warmup: pushes all active channels into the Redis registry, per tenant. This is what you run after a Redis flush, a restore, or a migration to new Redis infrastructure — without it, channels exist in the database and no inbound message resolves.

Moving ingress hosts

WEBHOOK_INGRESS_DRIVER applies to newly registered channels only; the Laravel route stays live regardless. Channels registered before a change keep pointing where they did.
Reports — or migrates — channels whose webhook still points at a previous ingress host. See Webhook gateway.

The first-run setup wizard

A new tenant’s console opens in a setup wizard: the staff confirm the content languages and create the first assistant before anything else is reachable. To put an existing, active tenant back there:
{tenant} is the slug or the id. The command asks for confirmation; --force skips the question for scripts. Steps the tenant’s data already satisfies (an assistant exists) stay done. The language confirmation is asked again, and a base language locked by a published flow is shown read-only.
The tenant’s staff are held in the wizard until the required steps are done again. Do not run it on a working tenant without telling its administrators.
Tenants that existed before the wizard was introduced are never held: the settings migration marks them complete. Operator packages call the same restart through TenantOnboardingInterface.

Scheduled tenant work

Some maintenance is per-tenant and runs on the scheduler rather than by hand, such as creating next month’s flow_logs partition. If the scheduler is not running, that work silently does not happen — see Services.