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

Fatal Error: Pingpong\Generators\Exceptions\InvalidMigrationNameException #177

Closed
ghost opened this issue Jun 18, 2015 · 9 comments
Closed

Comments

@ghost
Copy link

ghost commented Jun 18, 2015

Hello @gravitano,

I want to generate a migration for my module (I use L5.1).

First I type in the command

 php artisan module:use Content

After that I want to execute

 php artisan module:make-migration create_content_table

But then I get an error:

 [Symfony\Component\Debug\Exception\FatalErrorException]
 Class 'Pingpong\Generators\Exceptions\InvalidMigrationNameException' not found

Can u help me ?

Thanks and greetings from Germany

Heiko

@gravitano
Copy link
Member

Hmm, looks like your migration name is invalid.

@ghost
Copy link
Author

ghost commented Jun 18, 2015

Hi @gravitano,

why It is invalid ? My migration name is

 create_content_table

Before update to laravel 5.1 all was okay.

@gravitano
Copy link
Member

Hmm, you are using version 2.1.*@dev ? I think there are some conflict with new Laravel 5.1 signature command. I would try find solution for this problem.

@ghost
Copy link
Author

ghost commented Jun 18, 2015

Hi @gravitano,

yes. I use version 2.1.@dev.

I hope u find a solution!

I stay tuned.

@gravitano
Copy link
Member

After debugging and trying this package with fresh L5.1. I dont see error with naming convention of migration, just class Pingpong\Generators\Exceptions\InvalidMigrationNameException really does not exist. Also, I try create dummy module and migration named create_content_table and all works fine.

@ghost
Copy link
Author

ghost commented Jun 18, 2015

Hi

I have addionally the modules folder within app and the app Name is changend

I have this error and in Laravel 5 with the same config no error.
 

Am 18. Juni 2015 18:10:26 schrieb Gravitano notifications@github.com:

After debugging and trying this package with fresh L5.1. I dont see error
with naming convention of migration, just class
Pingpong\Generators\Exceptions\InvalidMigrationNameException really does
not exist. Also, I try create dummy module and migration named
create_content_table and all works fine.


Reply to this email directly or view it on GitHub:
#177 (comment)

@ghost
Copy link
Author

ghost commented Jun 19, 2015

Hi @gravitano,

I don't know but this morning I type the same commands in and all works okay.

That's strange!

@ghost ghost closed this as completed Jun 19, 2015
@praveesh4u
Copy link

Please makes sure that when you create a migration, the migration name starts with
any of the following words.

        'create',
        'make',
        'delete',
        'remove',

        'add',
        'update',
        'append',
        'insert',
        'destroy',
        'drop',

An 'InvalidMigrationException' was obeserved otherwise(Don't know wheather it is a global phenomenon)

@spartangian
Copy link

@praveesh4u this solves the issue. thank you

This issue was closed.
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

3 participants