mercredi 10 juin 2020

Illuminate\Database\QueryException Laravel voyager SQLSTATE[42S01]

hello every one i working a project with laravel voyager but i have this erreur when i run : php artisan voyager:install --with-dummy

the erreur :

Publishing the Voyager assets, database, and config files
Copied Directory [\vendor\tcg\voyager\publishable\database\seeds] To [\database\seeds]
Publishing complete.
Migrating the database tables into your application
Migrating: 2017_01_14_005015_create_translations_table

   Illuminate\Database\QueryException

  SQLSTATE[42S01]: Base table or view already exists: 1050 La table 'translations' existe déjà (SQL: create table `translations` (`id` int unsigned not null auto_increment
primary key, `table_name` varchar(191) not null, `column_name` varchar(191) not null, `foreign_key` int unsigned not null, `locale` varchar(191) not null, `value` text not
null, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

  at C:\wamp64\www\App-Livraison\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671
    667|         // If an exception occurs when attempting to run a query, we'll format the error
    668|         // message to include the bindings with SQL, which will make this exception a
    669|         // lot more helpful to the developer instead of just the database's errors.
    670|         catch (Exception $e) {
  > 671|             throw new QueryException(
    672|                 $query, $this->prepareBindings($bindings), $e
    673|             );
    674|         }
    675|

  1   C:\wamp64\www\App-Livraison\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php:129
      Doctrine\DBAL\Driver\PDOException::("SQLSTATE[42S01]: Base table or view already exists: 1050 La table 'translations' existe déjà")

  2   C:\wamp64\www\App-Livraison\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php:127
      PDOException::("SQLSTATE[42S01]: Base table or view already exists: 1050 La table 'translations' existe déjà")

N.B i already did Schema::defaultStringLength(191); to the APP service provider but it s not working .



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Ynl3ko
via IFTTT

Aucun commentaire:

Enregistrer un commentaire