Skip to content

Self-hosted deployments break on update due to missing database migrations #1612

@pcrausaz

Description

@pcrausaz

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

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions