Skip to content

[Bug] 7.0.0-alpha.23 - Postgres - force sync not updating enum #15812

Closed

Description

@nawlbergs

Issue Creation Checklist

  • I understand that my issue will be automatically closed if I don't fill in the requested information
  • I have read the contribution guidelines

Bug Description

I'm building out a database model on my server for a new app. I have to manually run code to remove enums as any changes to my database models are not making their way into postgres when I do db.sync({ force: true }); at the start of my script to inject data.

I know its alpha (but just reporting this so its known) :) cheers

Reproducible Example

Here is the link to the SSCCE for this issue:

What do you expect to happen?

The enums of my table to be replaced/updated.

What is actually happening?

The enums remain the same in the database.

Environment

  • Sequelize version: @sequelize/[email protected]
  • Node.js version: v18.13.0
  • If TypeScript related: TypeScript version: 4.9.5
  • Database & Version: PostgreSQL 15.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924, 64-bit
  • Connector library & Version: "pg": "^8.9.0", "pg-hstore": "^2.3.4",

Would you be willing to resolve this issue by submitting a Pull Request?

  • Yes, I have the time and I know how to start.
  • Yes, I have the time but I will need guidance.
  • No, I don't have the time, but my company or I are supporting Sequelize through donations on OpenCollective.
  • No, I don't have the time, and I understand that I will need to wait until someone from the community or maintainers is interested in resolving my issue.

Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.

Activity

  1. added
    pending-approval
    type: bug
    on Mar 20, 2023
  2. removed
    pending-approval
    on Apr 1, 2023
  3. added theissue type on Mar 9, 2025
  4. removed
    type: bug
    on Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions