Crea tu primera app con Laravel | 1.6 - Modelado de la Base de datos

CLIVER OLIVER TURPO BENIQUE@cliverolvier

a mi me salio asi, en php artisan migrate

INFO Running migrations.

2025_04_24_222804_create_services_table ................................................................................................ 20ms DONE 2025_04_24_234429_create_service_user_table ............................................................................................. 2ms FAIL

Illuminate\Database\QueryException

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'service_user' already exists (Connection: mysql, SQL: create table service_user (user_id bigint unsigned not null, service_id bigint unsigned not null, created_at timestamp null, updated_at timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

at vendor\laravel\framework\src\Illuminate\Database\Connection.php:829 825▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 826▕ ); 827▕ } 828▕ ➜ 829▕ throw new QueryException( 830▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 831▕ ); 832▕ } 833▕ }

1 vendor\laravel\framework\src\Illuminate\Database\Connection.php:587 PDOException::("SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'service_user' already exists")

2 vendor\laravel\framework\src\Illuminate\Database\Connection.php:587 PDOStatement::execute()


Escribe una respuesta