Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
633 stars 197 forks source link

Migration does not work #257

Closed TNodeCode closed 3 years ago

TNodeCode commented 6 years ago

Laravel 5.5

I tried to run the following command: php artisan neo4j:make:migration create_records

I am getting the following error: Method Vinelab\NeoEloquent\Console\Migrations\MigrateMakeCommand::handle() does not exist

My Schema class looks like this:


<?php

use Vinelab\NeoEloquent\Facade\Neo4jSchema;
use Vinelab\NeoEloquent\Schema\Blueprint;
use Vinelab\NeoEloquent\Migrations\Migration;

class CreateRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Neo4jSchema::connection('neo4j')->create('records', function (Blueprint $table) {
            $table->increments('id')->nullable(false);
            $table->string('name');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('records');
    }
}
`
Mulkave commented 6 years ago

Please try again. This should've fixed it https://github.com/Vinelab/NeoEloquent/pull/255

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

omrcnkpln commented 2 years ago

Is there any solution for the __invoke() method as well ??