Bug Description
On our self-hosted Twenty instance, application registrations cannot be loaded.
When the frontend executes the FindAllApplicationRegistrations GraphQL query, the backend generates a TypeORM query that selects:
"registration"."logoFileId"
from:
"core"."applicationRegistration"
PostgreSQL rejects the query because the logoFileId column does not exist:
QueryFailedError: column registration.logoFileId does not exist
The error occurs repeatedly whenever the application registrations list is requested.
Relevant log excerpt:
query failed: SELECT
...
"registration"."logoFileId" AS "registration_logoFileId",
...
FROM "core"."applicationRegistration" "registration"
WHERE "registration"."deletedAt" IS NULL
ORDER BY "registration_createdAt" DESC, "registration_id" ASC
LIMIT 25 OFFSET 0
error: column registration.logoFileId does not exist
QueryFailedError: column registration.logoFileId does not exist
at PostgresQueryRunner.query
at SelectQueryBuilder.loadRawResults
at SelectQueryBuilder.executeEntitiesAndRawResults
at SelectQueryBuilder.getManyAndCount
at ApplicationRegistrationService.findAll
PostgreSQL error code: 42703
PostgreSQL routine: errorMissingColumn
GraphQL operation:
FindAllApplicationRegistrations
Steps to reproduce:
- Start Twenty using an existing PostgreSQL database.
- Sign in to the workspace.
- Open the page that loads the application registrations, such as Settings → Admin Panel → Applications.
- Observe that the applications are not loaded.
- Click on Synchronize catalog button.
- Check the server logs and observe the missing-column error.
Expected behavior
The application registrations query should complete successfully and the applications page should display the available registrations.
Any required database upgrade command should create core.applicationRegistration.logoFileId before the updated server starts querying that column.
Technical inputs
Environment:
Twenty version/image tag: v2.23.2
Previous Twenty version: v2.21.2
Deployment method: Docker compose on Coolify
PostgreSQL version: postgres:16-alpine
Bug Description
On our self-hosted Twenty instance, application registrations cannot be loaded.
When the frontend executes the
FindAllApplicationRegistrationsGraphQL query, the backend generates a TypeORM query that selects:from:
PostgreSQL rejects the query because the
logoFileIdcolumn does not exist:The error occurs repeatedly whenever the application registrations list is requested.
Relevant log excerpt:
Steps to reproduce:
Expected behavior
The application registrations query should complete successfully and the applications page should display the available registrations.
Any required database upgrade command should create
core.applicationRegistration.logoFileIdbefore the updated server starts querying that column.Technical inputs
ApplicationRegistrationService.findAllfails when TypeORM queries the application registrations.42703, indicating that a referenced column does not exist.core.applicationRegistration.logoFileId, but the deployed database schema does not contain that column.logoFileIdcolumn onapplicationRegistrationthrough a Twenty 2.21 fast instance command:2-21-instance-command-fast-1783945979243-add-logo-file-id-to-application-registration.tsEnvironment: