Vinelab / NeoEloquent

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

Migration Rollback Error: (Laravel 5.6, NeoEloquent 1.4.6) #288

Closed tumainimosha closed 4 years ago

tumainimosha commented 6 years ago

Hi. I am new to NeoEloquent. I have been able to implement and run migration, however, facing issue when calling rollback. Migrate works fine, but rollback throws below trace below

./artisan neo4j:migrate:rollback

   Vinelab\NeoEloquent\QueryException  : ParameterNotFoundException: Expected parameter(s): migration, migration

  at /path-to-project/vendor/vinelab/neoeloquent/src/Connection.php: 467

Exception trace:

1   Vinelab\NeoEloquent\Connection::run("MATCH (neoEloquentMigration:`NeoEloquentMigration`) WHERE neoEloquentMigration.migration = {migration} OPTIONAL MATCH (neoEloquentMigration:`NeoEloquentMigration`)-[r]-()  WHERE neoEloquentMigration.migration = {migration} DELETE  neoEloquentMigration,r", Object(Closure))
      /path-to-project/vendor/vinelab/neoeloquent/src/Connection.php : 222
2   Vinelab\NeoEloquent\Connection::affectingStatement("MATCH (neoEloquentMigration:`NeoEloquentMigration`) WHERE neoEloquentMigration.migration = {migration} OPTIONAL MATCH (neoEloquentMigration:`NeoEloquentMigration`)-[r]-()  WHERE neoEloquentMigration.migration = {migration} DELETE  neoEloquentMigration,r")
      /path-to-project/vendor/laravel/framework/src/Illuminate/Database/Connection.php : 435

I have found similar open issue #192 for different version of Laravel (4.2) and NeoEloquent (1.4.2)

Any help would be appreciated.

axelthat commented 6 years ago

Hey @princeton255 ! Did you fix this? Please let me know. I am also facing the same problem.

holix commented 5 years ago

This is fixed in 1.4.7