Releases: bennett-treptow/laravel-migration-generator
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
Stricter Morph Matching
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
Foreign key constraints with NO ACTION / RESTRICT, SET NULL, SET DEFAULT will correctly be parsed
Fix View Generation
View generation was not working because preg_match on the timestamp format option was causing issues.
Moving Stubs out of views
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
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!
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
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
Soft deletes will not be pulled out when a timestamp field has deleted_at as its name.
Fix Null Column Name
Column names can in fact be nullable when the corresponding Blueprint schema method does not require any arguments.