---
title: "Install, uninstall & databases"
description: "How the durable operation journal coordinates app databases, runtime preparation, OIDC registration, secrets and the platform snapshot."
url: "https://rumahl.com/developers/app-resources"
section: "Resources & data"
group: "Build apps"
updated: "21 November 2026"
---

# Install, uninstall & databases

> How the durable operation journal coordinates app databases, runtime preparation, OIDC registration, secrets and the platform snapshot.

**Area:** Resources & data  
**Group:** Build apps  
**Updated:** 21 November 2026  
**Reading time:** 8 min  
**HTML:** https://rumahl.com/developers/app-resources

## Why a journal

Installing an app crosses several persistence boundaries that cannot share one transaction: the platform snapshot, optional app databases, runtime preparation and activation, and optional OIDC registration and secret delivery. rumahl records ordered steps and can resume or compensate after a crash.

## Install order

The platform snapshot is always last, so live state cannot advertise resources whose provider step has not completed. App code cannot start before its declared runtime secrets exist.

```text
optional app databases
prepare runtime instance and secret namespace
optional OIDC client registration
activate runtime instance
store platform snapshot
```

## Uninstall order

An interrupted uninstall resumes forward. Databases are retained in inaccessible storage; physical deletion is a separate explicit purge policy that is not implemented yet.

```text
stop runtime
remove runtime secrets
revoke app grants and network consents
revoke OIDC client
remove prepared runtime
retain app databases
store removed platform snapshot
```

## Crash-visible states

| Phase | Meaning |
| --- | --- |
| pending | Not started |
| applying | Provider call may have happened; ambiguous after a crash |
| applied | Provider confirmed success |
| compensation-pending | Must be reversed |
| compensating | Reverse call in progress |
| compensated | Reverse call confirmed |

## App databases

Databases are optional and declared by logical names only. The host path, engine, credentials and connection details belong to the provider, never the manifest.

- Each active database is addressed by (InstallationId, AppDatabaseId).
- An app can declare at most eight databases.
- SQLite is the first local provider; PostgreSQL and native delivery remain separate adapters.
- A new installation never inherits an old installation’s database.

## Current status

> [!NOTE]
> **Update execution is not connected yet**
>
> Install, uninstall, compensation and restart recovery are implemented. Update execution still needs version validation, database backup/migration, health checks and rollback policy.
