In Connection.php line 664:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'credit_prop_fees' already exists (SQL: create table credit_prop_fees
(id
int unsigned not null auto_increment primary key, fee_id
int not null, created_at
timestamp null, updated_at
timestamp null) default character set utf8mb4 collate utf8mb4_unicode_ci)
I have two migrations one by another few This is firs one
public function up()
{
Schema::create('credit_prop_fees', function (Blueprint $table) {
$table->increments('id');
$table->integer('fee_id');
$table->timestamps();
});
}
As you see in the next migration I have dropeIfExist() function
public function up()
{
Schema::dropIfExists('credit_prop_fees');
Schema::create('credit_prop_fees', function (Blueprint $table) {
$table->increments('id');
$table->integer('credit_id');
$table->integer('credit_prop_id');
$table->integer('fee_type_id');
$table->integer('fee_value_id');
$table->timestamps();
});
}
I am trying to make php artisan migrate Why I receive this error if I write Schema::dropIfExists('credit_prop_fees');
Even When I use tinker I have null but the table deleted C:\OSPanel\domains\laravel.bai.loc>php artisan tinker Psy Shell v0.8.17 (PHP 7.1.12 — cli) by Justin Hileman
Schema::drop('credit_prop_fees'); => null
Thanks for your answers