question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error during "Export Laravel 5 Migration"

See original GitHub issue

I installed this plugin as described in documentation file . I tried to export my database using

tools->catalog->export laravel 5 migration screenshot from 2016-11-19 01-12-34

but it’s showing error error calling Python module function GenerateLaravel5Migration.generate_laravel5_migration

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:4
  • Comments:34 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
smueller-maxtongroupcommented, Sep 10, 2021

In case others have an issue - I also ran into the same error @namelus and others reported.

TLDR; Removing foreign keys with unmatched tables resolved the issue for me.

I discovered MySQL WB created foreign keys that didn’t have corresponding tables. When I created my tables, I used the dropper tool to select the columns to create the relationships. Initially they were non-identifying relationships, then I changed them to identifying relationships.

In troubleshooting this issue, I looked at the table properties in the Model tab and I saw one set of relationships that corresponded properly to tables and one set that didn’t have tables matched to them.

When I removed the unmatched relationships, the migration files were generated properly with the expected foreign keys.

1reaction
AFZidancommented, Nov 20, 2016

@beckenrode Excellent… It’s working now Thank you so much …

Read more comments on GitHub >

github_iconTop Results From Across the Web

mysql workbench does not start after ... - Stack Overflow
Just installed mysql-workbench-community-8.0.25-winx64.msi on windows 10. Works fine until I install 'export-laravel-5-migrations.py' ...
Read more >
Laravel 5 - Migrations from existing database - Laracasts
I would like to know how can I proceed for creating migrations from an empty existing database with Laravel 5. With L4, I...
Read more >
Migrations & Seeding - The PHP Framework For Web Artisans
Migrations are a type of version control for your database. They allow a team to modify the database schema and stay up to...
Read more >
Models and Migrations | Laravel Package Development
Migrations live in the database/migrations folder in a Laravel application. In our package we mimic this file structure. Therefore, database migrations will not ......
Read more >
Check for background migrations before upgrading | GitLab
For a no-downtime deployment · Check the status of the batched background migration from the error message, and make sure it is listed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found