Laravel-Backpack / LangFileManager

A quick interface to edit Laravel language files, for Backpack.
http://backpackforlaravel.com
MIT License
92 stars 42 forks source link

Undefined index: 2015_09_10_124414_alter_languages_table #25

Closed youngerrainbow closed 7 years ago

youngerrainbow commented 8 years ago

php artisan migrate:refresh will show error Undefined index: 2015_09_10_124414_alter_languages_table

youngerrainbow commented 8 years ago

$this->loadMigrationsFrom(realpath(__DIR__.'/database/migrations'), 'langfilemanager'); i fix this add above code to serviceprovider

tabacitu commented 7 years ago

That's a good fix, thanks.

But I think a better solution would be to NOT instruct people to run the migrations directly from the package, but allow (and instruct) them to publish the migration, then run php artisan migrate. This would prevent the problem above AND would also make sure developers commit the migration to their repository and push it to their test/production env.

@Ghitu , right?

Ghitu commented 7 years ago

@tabacitu I agree

WanderingKazuma commented 7 years ago

I'm currently seeing this issue, but I'm a little confused as to where I would add @youngerrainbow 's fix.

lloy0076 commented 7 years ago

@Ghitu @tabacitu What is the fix here?

lloy0076 commented 7 years ago

In the absence of a fix (and no-one complaining) I'm closing this.