2016-12-09 2 views
-1

HI Ich versuche Aimeos für laravel 5.2, Nach der Installation und Datenbankkonfiguration config/shop.php zu installieren, wenn ich aktiv bin php artisan migration Ich habe diesen Fehler gefunden. Error Hier ist mein Benutzer TabellencodeAimeos Migrationsfehler; SQLSTATE [42S02]: Basistabelle oder View nicht gefunden: 1146 Tabelle 'taniscart.users' existiert nicht

<?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' 
      )); 
     }); 
    } 

} 

noch das Problem lösen. irgendein Vorschlag???

Antwort

0

Haben Sie diese Zeilen zu Ihrer composer.json hinzugefügt, bevor Sie "Composer Update" ausgeführt haben? ist wichtig

+0

Ja, ich habe "post-update-cmd": Vor allem

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

die "veröffentlichen php Handwerker Verkäufer": [ "Illuminate \\ Foundation \\ ComposerScripts :: postUpdate", "php Handwerker optimieren", "php Handwerkers Anbieter: veröffentlichen --tag = public --force", "php Handwerker Verkäufer: veröffentlichen", "php Handwerkers Migrate" ] –

+0

sind die Standard Laravel Datenbank/Migration/2014_10_12_000000_create_users_table.php und Datenbank/migratio ns/2014_10_12_100000_create_password_resets_table.php Migrationsdateien fehlen in Ihrer Installation? – Toco

+0

danke Standardbenutzer Tabelle fehlte. –

Verwandte Themen