Closed axelthat closed 3 years ago
Please add the version of NE that you are using (preferably from your composer.lock
file). And more details about the migration code that you attempt to rollback (all a similar fictitious example if you'd rather preserve confidentiality).
Hi @Mulkave ! I am using v1.4.6 !
Here's the migration code which I attempted to rollback:
<?php
use Vinelab\NeoEloquent\Schema\Blueprint;
use Vinelab\NeoEloquent\Migrations\Migration;
class CreateUsersMainLabel extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Neo4jSchema::label('users_main', function(Blueprint $label)
{
$label->index('fname');
$label->index('lname');
$label->unique('email');
$label->index('password');
$label->index('old_password');
$label->index('joined');
$label->index('dob_year');
$label->index('dob_month');
$label->index('dob_day');
$label->index('gender');
$label->index('country');
$label->index('active_status');
$label->index('last_active_status');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Neo4jSchema::dropIfExists('users_main');
}
}
Hey SanjayBanjade,
you should upgrade to version v1.4.7. This was fixed in this release.
@holix Thanks a lot man!
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.
When I try to run
php artisan neo4j:migrate:rollback
orphp artisan neo4j:migrate:refresh
, it gives me the following error:How can I fix this?