wintercms / wn-builder-plugin

GUI for building plugins in Winter CMS
MIT License
34 stars 12 forks source link

Version file %s is not found when try to access migration in subdir #63

Open dimti opened 9 months ago

dimti commented 9 months ago

If create migration file with artisan command ./artisan create:migration plugin.code --name "SomeMigration" --table some_table -u then created migration in subdir with dirname as version number. On the builder plugin if try to open this migration from the list - catching appliaction error about unable to find migration file

dimti commented 9 months ago

Simple fix there: https://github.com/dimti/wn-builder-plugin/commit/e323ec72

LukeTowers commented 9 months ago

@bennothommo are you able to take 15 minutes to look at this? It should be a simple fix

dimti commented 9 months ago

May be is not fully correctly fix, because after create migrations from wn-builder - migration file path prefixed with current dir ./ image