Description
When updating a self-hosted Cap instance (e.g. pulling a newer Docker image and redeploying the stack), the application crashes with a database error because new columns are not automatically added to the existing database.
Error:
Error: Unknown column 'videos.effectiveCreatedAt' in 'field list'
code: 'ER_BAD_FIELD_ERROR', errno: 1054, sqlState: '42S22'
The app code references videos.effectiveCreatedAt, but this column doesn't exist in the database because no migration was run.
Reproduction
- Deploy Cap self-hosted using
docker compose up -d
Additional Context
- Cap version: (Latest) Image ID: e7b63b58a91350337037ae40d3eae7ba17193f693622aece534a2349c0ee708f (2026-01-26 14:44:11)
- Operating system, version: Portainer 2.33.7 LTS on Synology NAS