2016-12-09 185 views
-1

HI私はlaravel 5.2、インストール後およびデータベースコンフィグレーションconfig/shop.php用にAimeosをインストールしようとしていますphp artisan migrationこのエラーが見つかりました。 Errorここに私のユーザーのテーブルコードAimeosの移行エラー。 SQLSTATE [42S02]:ベーステーブルまたはビューが見つかりません:1146テーブル 'taniscart.users'が存在しません

<?php 

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

class AimeosUsersTable extends Migration { 

    /** 
    * Run the migrations. 
    * 
    * @return void 
    */ 
    public function up() 
    { 
     Schema::table('users', function(Blueprint $table) 
     { 
      $table->string('salutation', 8)->default(''); 
      $table->string('company', 100)->default(''); 
      $table->string('vatid', 32)->default(''); 
      $table->string('title', 64)->default(''); 
      $table->string('firstname', 64)->default(''); 
      $table->string('lastname', 64)->default(''); 
      $table->string('address1')->default(''); 
      $table->string('address2')->default(''); 
      $table->string('address3')->default(''); 
      $table->string('postal', 16)->default(''); 
      $table->string('city')->default(''); 
      $table->string('state')->default(''); 
      $table->string('langid', 5)->nullable(); 
      $table->char('countryid', 2)->nullable(); 
      $table->string('telephone', 32)->default(''); 
      $table->string('telefax', 32)->default(''); 
      $table->string('website')->default(''); 
      $table->date('birthday')->nullable(); 
      $table->smallInteger('status')->default('1'); 
      $table->date('vdate')->nullable(); 
      $table->string('editor')->default(''); 

      $table->index('langid'); 
      $table->index(array('status', 'lastname', 'firstname')); 
      $table->index(array('status', 'address1')); 
      $table->index('lastname'); 
      $table->index('address1'); 
      $table->index('city'); 
      $table->index('postal'); 
     }); 
    } 

    /** 
    * Reverse the migrations. 
    * 
    * @return void 
    */ 
    public function down() 
    { 
     Schema::table('users', function(Blueprint $table) 
     { 
      $table->dropIndex('users_langid_index'); 
      $table->dropIndex('users_status_lastname_firstname_index'); 
      $table->dropIndex('users_status_address1_index'); 
      $table->dropIndex('users_lastname_index'); 
      $table->dropIndex('users_address1_index'); 
      $table->dropIndex('users_city_index'); 
      $table->dropIndex('users_postal_index'); 

      $table->dropColumn(array(
       'salutation', 'company', 'vatid', 'title', 'firstname', 
       'lastname', 'address1', 'address2', 'address3', 'postal', 'city', 
       'state', 'langid', 'countryid', 'telephone', 'telefax', 'website', 
       'birthday', 'status', 'vdate', 'editor' 
      )); 
     }); 
    } 

} 

はまだ問題を解決しています。なにか提案を???

答えて

0

"composer update"を実行する前に、これらの行をcomposer.jsonに追加しましたか?

"scripts": { 
    "post-update-cmd": [ 
     "php artisan vendor:publish --tag=public --force", 
     "php artisan vendor:publish", 
     "php artisan migrate", 
    ] 
} 

特に "PHPの職人ベンダー:公開は、" 重要な

+0

あるはい、私は "更新後-CMD" をやった:[ "を照らし\\財団\\ ComposerScripts :: postUpdate"、 "PHPの職人の最適化"、 :、 "PHPの職人のベンダーが--tag =公共--forceを公開": ] –

+0

があり、 "PHPの職人ベンダー公開" "PHPの職人の移行" を をデフォルトLaravelデータベース/移行/ 2014_10_12_000000_create_users_table.phpとdatabase/migratioインストールでns/2014_10_12_100000_create_password_resets_table.php移行ファイルが見つかりませんでしたか? – Toco

+0

ありがとうございます。デフォルトのユーザーテーブルがありませんでした。 –

関連する問題