Skip to content

Version 1.3.0 breaks on model removal #3

@RobertP09

Description

@RobertP09

Problem:
When you remove a model and are prompted with the following:
✔ **model** is missing in current schema. Have you deleted it?

An error occurs: Cannot convert undefined or null to object

Debugging shows:

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at compareSchema (file:///*/*/*/*/*/node_modules/sequelizemm/dist/index.mjs:429:10)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async makemigration (file:///*/*/*/*/*/node_modules/sequelizemm/dist/index.mjs:482:5)
    at async cli (file:///*/*/*/*/*/node_modules/sequelizemm/bin/index.js:55:7)

Confirmed that this does not happen on 1.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions