Skip to content

Migration ignores new columns when also dropping existing columns (SQLite) #32922

@TheDoctor0

Description

@TheDoctor0
  • Laravel Version: 7.12.0
  • PHP Version: 7.4.5
  • Database Driver & Version: SQLite

Description:

New columns are not added to the table when the migration both creates a new column and drops the existing one. After splitting those changes to separate migrations the problem no longer exists.
This issue seems to be SQLite related as with PostgreSQL it works fine.

Steps To Reproduce:

  1. Create a migration for the table.
  2. Add the second migration with schema change that adds a new column and drops an existing column.
  3. The existing column has been dropped but a new column is not present in the table.

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