Skip to content

user_preferences.currency column exists in DB but not in the entity #1206

Description

@RUKAYAT-CODER

Migration 1710000000000-AddTimezoneLocalePreferences.ts adds currency varchar DEFAULT 'USD' to user_preferences, but UserPreference (src/user-preferences/entities/user-preference.entity.ts) only declares locale, language, timezone, etc. — no currency.

Same consequences as the users/course cases: the column can't be read through the entity and the drift check wants to drop it.

Fix: declare currency on the entity or drop the column.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions