Skip to content

Laravel 9. Migration Silently Fails with SQLite when Dropping and Adding a Column in the Same Modification  #45058

@Sunhat

Description

@Sunhat

#39442

Laravel Version: 9.38.0
PHP Version: 8.1
Database Driver & Version: SQLite 3
OS: MacOS and Docker ubuntu latest
Description:
This is an easily re-producible bug that is consistent across new and old installations of Laravel 8 & 9. It was already reported, and has been a bug in Laravel for over a year. @driesvints couldn't be bothered to investigate, so closed the issue.

#39442

Create migration with drop col and new columns
Write a test that reads or writes this field
Watch it not exist

@driesvints In my previous ticket, I reported this as Laravel 8 forgetting Laravel 9 exists. I'm using Laravel 9. The same bug exists. If you waste more of my time, I'll bill you. You've been handed the exact lines of code responsible for this, and that obviously hasn't changed.

@driesvints Open source, yes, that means I'm contributing to your project for free. You're rude and lack the curiosity to be a developer. I hope to God you're not actually paid.

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