Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with running migrations #59

Closed
tomhalley opened this issue Oct 25, 2013 · 3 comments
Closed

Problem with running migrations #59

tomhalley opened this issue Oct 25, 2013 · 3 comments

Comments

@tomhalley
Copy link

I've noticed a problem that's come about recently (possibly as a result of updating the Laravel framework) where Laravel falls down because it's trying to call method "string()" when creating a migration table in the target database migrations table.

When running the migrations, it throws this error:

PHP Fatal error:  Call to undefined method Jenssegers\Mongodb\Schema
\Blueprint::string() in /home/user/Documents/Projects/Website/vendor/
laravel/framework/src/Illuminate/Database/Migrations/
DatabaseMigrationRepository.php on line 124

So it appears to be trying to call "string()" on the Jenssegers\Mongodb\Schema\Blueprint class (which doesn't currently support string).

Is there a solution for this? I can hardly see it being worth it to implement a string method just for a workaround with the Laravel framework.

@jenssegers
Copy link
Contributor

Why are you using the string()method if I may ask?

@jenssegers
Copy link
Contributor

Oh, are you getting this error if you are running built-in migrations like reminders? I will add a string method to the blueprint class that does nothing to solve this :)

@jenssegers
Copy link
Contributor

I updated the schema builder to support "fluent" schema building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants