Releases: bennett-treptow/laravel-migration-generator
Skippable Views
Views can be skipped! Or just a few by specifying a comma-delimited list.
Check out CHANGELOG.md & README.md for new environment vars.
Fix Run After Migrations Env check
Was looking for a testing
env, not local
like it should be.
Environment Variables!
All config options have been updated to be env vars. Since it seems like config options will continue to grow, it makes more sense to remove the headache of having to upgrade the config file every time there's a new config option and instead move towards .env files.
See UPGRADE.md on how to upgrade to 3.0.0
Change mkdir permissions
As per PR #11 , the mkdir permissions have been updated to be 777.
Single Column Index Method Names
Previous PR with new config options did not apply to single-column index methods like:
$table->string('unique_field')->unique('unique_field_key_name');
were not being correctly updated. Only multi-column indices were using the new config. This release will correct that.
Index Name Preferences
This release adds 4 new config keys for each of the key types so you can specify which types you want index names to be brought into the migrations. Note that in some cases, you will still want to turn this config on for multi-column indices that are long because index names can only be 64 characters long.
Unsigned Method Prefix Config and Auto Increment Fix
With the new laravel-migration-generator.definitions.prefer_unsigned_prefix
config option, you can choose whether an unsigned int field is output as unsignedInteger('field')
or integer('field')->unsigned()
.
Auto incrementing ids were also updated to properly reflect their primary-key-ness. Laravel methods like increments() will also correctly look to see if the column is auto incrementing as well.
Renamed Command
The command name was unfortunate since I was trying to keep it as part of the migrate
namespace, but figured it makes more sense to call it generate:migrations
since that is what it is doing.
Fix View Stub Path
Stub path for overriding the view stub was flubbed.
TinyText currently not a valid Blueprint method
Updated tinytext
to be substituted with a string method instead for the time being. PR'd laravel/framework to add tinyText