Skip to content

chore(db): Implement database migrations for production #13

@Zafar7645

Description

@Zafar7645

Description
Currently, the application uses synchronize: true for ease of development. Before deploying to a production environment, this must be changed to false to prevent accidental data loss. Also need to consider implementing a case-insensitive unique constraint on the users.email column using CITEXT or a lower() index, as suggested in PR #1.

Acceptance Criteria

  • Set synchronize: false in the production database configuration.
  • Generate initial TypeORM migrations based on the current entity schema.
  • Update the deployment process to run migrations automatically on startup.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions