guirisan / app

0 stars 0 forks source link

[migrations] error table not found #9

Closed guirisan closed 7 years ago

guirisan commented 7 years ago

  [Illuminate\Database\QueryException]                                                                                                                                 
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'app.plaga_planta' doesn't exist (SQL: alter table `plaga_planta` add `plaga_id` int not null, add `plant  
  a_id` int not null, add `descripcio` text null, add `created_at` timestamp null, add `updated_at` timestamp null)                                                    

  [PDOException]                                                                              
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'app.plaga_planta' doesn't exist  
guirisan commented 7 years ago

Error al crear la migració desde artisan i usar --table com a argument en compte de --create.

Aixó suposa que en compte de Schema::create() usa Schema::table(), i pel que siga aixó no crea la taula sino que intenta alterar-la (incloure claus forànies i demés), pel que falla en el alter table

guirisan commented 7 years ago

Related to #8