Skip to content

Releases: bennett-treptow/laravel-migration-generator

Skippable Views

25 Apr 23:13
92acfb2
Compare
Choose a tag to compare

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

25 Apr 22:40
3c8faf0
Compare
Choose a tag to compare

Was looking for a testing env, not local like it should be.

Environment Variables!

25 Apr 22:34
7d60269
Compare
Choose a tag to compare

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

25 Apr 22:32
e20278a
Compare
Choose a tag to compare

As per PR #11 , the mkdir permissions have been updated to be 777.

Single Column Index Method Names

25 Apr 21:18
ea0b805
Compare
Choose a tag to compare

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

25 Apr 21:00
ca11005
Compare
Choose a tag to compare

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

25 Apr 15:41
844a2ea
Compare
Choose a tag to compare

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

12 Apr 13:37
Compare
Choose a tag to compare

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

12 Apr 01:52
Compare
Choose a tag to compare

Stub path for overriding the view stub was flubbed.

TinyText currently not a valid Blueprint method

12 Apr 01:41
Compare
Choose a tag to compare

Updated tinytext to be substituted with a string method instead for the time being. PR'd laravel/framework to add tinyText