Closed Dalamar closed 8 years ago
On a local test all these methods seem to result in the exception being thrown. (I did rename the batch from #6 to number, which did seem to fix the migration table.)
It also seems like the content of the request of the exception reveals a bit more about this issue. The error returned by Orient is "java.lang.IllegalArgumentException: Class '****' already exists"
so it seems like a drop of a table is actually resulting in a create.
Hi @DJWassink , yes you are right. The drop method is always calling create class method
The problem has been solved. Try the updated code and inform
php artisan orient:rollback
php artisan orient:reset
They both updates migrations table but they don't delete the schemas that were created during the migration being reseting/rolling back.
php artisan orient:refresh
Retuns:
Rolled back: 2015_10_28_191606_create_countries_table
Nothing to rollback.
[Sgpatil\Orientphp\Exception]
Error: Unable to create Class
As the result, migration table is empty but all tables that were created during migrations remain in DB.
BTW which version of OrientDB do you guys use to test this driver?
I am using orientdb community 2.0 M1
Sorry @Dalamar , I just forgot to push changes of orientdb-php . Can you please recheck it using updated code once again.
Great! Thanks for quick resolving. Confirm. Now it works.
I use following versions for Mac OS X:
OrientDB 2.2 alpha (from download page) works fine with column name 'batch' in migrations table. All other versions I use blaming on the 'batch' property and do not create migration records.
Closing the issue as it is fixed. Please let me know if you find any problem.
I get
Nothing to rollback.
after executing ofphp artisan orient:reset
meanwhile the database remains untouched and all classes remains the same.I get
Nothing to rollback.
after executing ofphp artisan orient:rollback
meanwhile the database remains untouched and all classes remains the same.I get
Nothing to rollback.
after executing ofphp artisan orient:refresh
and exceptionmeanwhile the database remains untouched and all classes remains the same.