未找到基本表或视图Laravel 5.5

时间:2017-12-12 14:41:15

标签: laravel-5

我有迁移

    /**
 * Run the migrations.
 *
 * @return void
 */
public function up()
{
    Schema::create('a_delivery_pec_delivery_ranges', function (Blueprint $table) {
        $table->increments('id');
        $table->integer('weight');
        $table->float('volume');
        $table->float('length');
    });

    Schema::table('a_delivery_pec_delivery_ranges', function(Blueprint $table) {
        $table->index('weight', 'weight_index');
    });
}

/**
 * Reverse the migrations.
 *
 * @return void
 */
public function down()
{

    Schema::table('a_delivery_pec_pickup_coef', function (Blueprint $table) {
        $table->dropIndex('weight_index');
    });

    Schema::dropIfExists('a_delivery_pec_delivery_ranges');
}

当我尝试在控制台“php artisan migrate”或“php artisan migrate:refresh --seed”或“php artisan server”或“php artisan migrate:rollback”或“composer dump-autoload”时,我发现错误

  

未找到基表或视图:1146表   'delivery_update.a_delivery_pec_delivery_ranges'不存在

0 个答案:

没有答案