SmokeTM
2 months ago
198
10
Laravel

Can't add column to existing table

Posted 2 months ago by SmokeTM

I wanna add a column to an existing table, but it always says Nothing to migrate. What I did so far I added

Schema::table('users', function (Blueprint $table) {
        $table->softDeletes();
    });

 Schema::table('users', function (Blueprint $table) {
        $table->dropSoftDeletes();
    });

to my users migration. That should work. It is stated in the docs https://laravel.com/docs/7.x/eloquent#soft-deleting.

Maybe someone know whats wrong here?

Please sign in or create an account to participate in this conversation.