Just noticed that foreign keys are commented out in migration. Can we uncomment after the install migration has finished???
class PermissionRolesTable extends Migration
{
/**
* {@inheritDoc}
*/
public function up()
{
if (!$this->schema->hasTable('permission_roles')) {
$this->schema->create('permission_roles', function (Blueprint $table) {
$table->integer('permission_id')->unsigned();
$table->integer('role_id')->unsigned();
$table->timestamps();
$table->engine = 'InnoDB';
$table->collation = 'utf8_unicode_ci';
$table->charset = 'utf8';
$table->primary(['permission_id', 'role_id']);
//$table->foreign('permission_id')->references('id')->on('permissions');
//$table->foreign('role_id')->references('id')->on('roles');
$table->index('permission_id');
$table->index('role_id');
});
}
}
Thanks in advance,
Mike