0

/Vinelab/NeoEloquent を使用してアプリケーションで Neo4j を使用しています。問題は、php artisan を実行するneo4j:migrate --database=neo4j と、移行テーブルのノードが作成されることです。

関数 up() で定義されたラベルは作成されません。これを解決するにはどうすればよいですか?

スキーマクラスは、

<?php
use Vinelab\NeoEloquent\Schema\Blueprint;
use Vinelab\NeoEloquent\Migrations\Migration;
class CreateTestpostsTable extends Migration {
/**
 * Run the migrations.
 *
 * @return void
 */
public function up()
{
    Neo4jSchema::label('Testposts', function(Blueprint $label)
    {
          $label->unique('tpid');
          $label->index('name');
          $label->index('content');
    });
}
/**
 * Reverse the migrations.
 *
 * @return void
 */
public function down()
{
    Neo4jSchema::drop('Testposts');   
}

}
4

1 に答える 1