Skip to content

Releases: bennett-treptow/laravel-migration-generator

TinyText currently not a valid Blueprint method

12 Apr 01:41

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

Stricter Morph Matching

12 Apr 00:50

Choose a tag to compare

Sometimes a _id _type field pair would still get matched, even though the id field was a string that doesn't look like a UUID field.
e.g. this would produce a morphs('account') even though that isn't what it actually is.

`account_id` varchar(255) NOT NULL,
`account_type` varchar(255) NOT NULL,

Index Constraints: Restrict / No Action, Set Null, Set Default

12 Apr 00:35

Choose a tag to compare

Foreign key constraints with NO ACTION / RESTRICT, SET NULL, SET DEFAULT will correctly be parsed

Fix View Generation

12 Apr 00:18

Choose a tag to compare

View generation was not working because preg_match on the timestamp format option was causing issues.

Moving Stubs out of views

11 Apr 23:31

Choose a tag to compare

I originally didn't know what to do with the stubs and where they should get exported to -- since they're not blade templates, and they're not views, I decided to move them out into their own directory.

Config Options and Last Few MySQL Data Types Implemented

11 Apr 20:46
2124d0d

Choose a tag to compare

There are now a ton of config options for: naming of files, skippable tables per database, and where migrations will be output.

Simplified Interfaces! Definitions!

10 Apr 22:19

Choose a tag to compare

I simplified a bunch of the interfaces so that tokenization handles updating a column or index definition that is the standard Laravel column definition, instead of passing around a ton of parameters between classes.

Remove Display Width Parameters for Int Types

10 Apr 01:10

Choose a tag to compare

Laravel does not support display width parameters for integer types, like int(5). Removed all method parameters for those so they don't get added in the output.

Soft Deletes

10 Apr 00:55

Choose a tag to compare

Soft deletes will not be pulled out when a timestamp field has deleted_at as its name.

Fix Null Column Name

10 Apr 00:19

Choose a tag to compare

Column names can in fact be nullable when the corresponding Blueprint schema method does not require any arguments.