Skip to content

php artisan migrate --pretend not working on ChangeColumn #36629

@lk77

Description

@lk77
  • Laravel Version: 8.32.1
  • PHP Version: 7.2.27
  • Database Driver & Version: mysql 5.7

Description:

When doing php artisan migrate --pretend i have an exception :

AddColumnNameToTableName alter table `tableName` add `columName` varchar(100) null

In SchemaException.php line 86:
                                                                  
  There is no column with name 'columnName' on table 'tableName'. 

using ->change() does not seems to work

Steps To Reproduce:

1 / add a column with a migration
2 / change that column in another migration
3 / see that second migration fail when running pretend

thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions