I have a problem using Laravel 5.i connected Postgres database its connected successfully and When I run "php artisan migrate", I got this error
same error I got when I try with MySQL DB also.
In Connection.php line 664:
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "roles" does not exist
LINE 1: select * from "roles"
^ (SQL: select * from "roles")
I have the following Migration tables:
class CreateRolesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('roles', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('zip')->unique();
$table->string('description')->nullbale();
$table->boolean('system')->nullable()->default(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('roles');
}
}
How to fix it?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire