Skip to content

Assertion Error (unknown column 'run_on' in 'order clause') even without a 'run_on' column #836

Description

@sriramk3

I'm submitting a...

  • Bug report
  • Feature request
  • [*] Question

Current behavior

Whenever I create a new migration file, the creation is successful while after changing the table structure according to the datatypes available or even using a test table with just 2 or 3 columns, I have been getting this error:
[ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Unknown column 'run_on' in 'order clause'
while I'm trying to migrate.

I do not have an order clause nor a run_on column in my table.

I have setup correctly but the issue still persists.

Expected behavior

The desired behaviour is migrating the table to the database.

Minimal reproduction of the problem with instructions

Any command apart from the creation reproduces this behaviour.

Environment


db-migrate version: 10.2.4
db-migrate driver with versions: mysql 10.2.4

Additional information:
- Node version: v20.10.0
- Platform:  Mac

Activity

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions