Skip to content

[Bug] Refresh command command not working with filtered tables #84

@kennaar

Description

@kennaar

Hi,

I'm trying to use the refresh command to rollback and migrate my database. I have a migration for a password_resets table.
When I run the refresh command, internally it calls the reset command and it doesn't drop the password_resets table because I have it in my migrations.schema.filter regex listed.
Then the refresh command calls the migrate command and it tries to create the password_resets table because this command doesn't account for the filter.

Removing it from the filter regex also isn't any good because then the diff command generates a migration to drop the table every time.

I think I'm doing something wrong like I should provide an extra option when running the command, but there doesn't seem to be any option.

Thanks in advance

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