Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Dropping Columns doesn't work #21

Open
tubiz opened this issue Oct 15, 2024 · 0 comments
Open

[Bug]: Dropping Columns doesn't work #21

tubiz opened this issue Oct 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tubiz
Copy link

tubiz commented Oct 15, 2024

What happened?

I am unable to drop columns from tables using $table->dropColumn();

I have tested this using a local and remote database and I keep getting the error shown in the screenshot below.

CleanShot YQHchAot@2x

How to reproduce the bug

Create two migrations.

The first migration to create a blogs table with some columns

Schema::create('blogs', function (Blueprint $table) {
    $table->id();
    $table->string('title');
    $table->string('slug');
    $table->text('description');
    $table->text('content');
    $table->string('image');
    $table->timestamps();
});

Then another migration to drop some columns from the blogs table

Schema::table('blogs', function (Blueprint $table) {
    $table->dropColumn('description');
    $table->dropColumn('content');
});

Perform the migration using php artisan migrate

Package Version

1.0.13

PHP Version

8.3.12

Laravel Version

11.27.2

Which operating systems does with happen with?

macOS

Notes

No response

@tubiz tubiz added the bug Something isn't working label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant