Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleted migrations files still migrating

I deleted some of the migration files in my laravel app but after I run php artisan migrate command it still migrating the deleted migration files. I already tried composer dump-autoload and clearing caches still the same. What am I missing?

Migration sample:

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('email')->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users');
    }
}
like image 633
LAZYASSKID Avatar asked Oct 29 '25 14:10

LAZYASSKID


1 Answers

Fixed. It is coming from laravel/passport.

like image 93
LAZYASSKID Avatar answered Oct 31 '25 10:10

LAZYASSKID