0.16.0
Breaking Changes
- Validate datetime for version by @dereuromark in #2249
When usingAbstratMigration
class, when it's instantiated, the version will be validated that it is 14 characters (YYYYMMDDHHmmSS
). A future version may strengthen this to validate that it's a valid datetime. To get prior behavior, will need to extend theAbstractMigration
class and either override the constructor or the newvalidateVersion
method. - Fix inconsistencies with hasPrimaryKey by @DrewKolstad in #2228
PreviouslyhasPrimaryKey
would return inconsistently if the passed array of columns was a subset/superset of actual primary keys. This function should now only returntrue
iff the passed array of columns strictly matches the actual list of primary key columns (same length and values). Postgres and SQLServer are case sensitive, while MySQL and SQLite are case insensitive.
Fixes
- Fix setting faked migrations as migrated by @MasterOdin in #2252
- Fix for MySQL 8 DEFAULT_GENERATED extra by @cergfix in #2253
- Fix fatal errors when calling get methods by @markstory in #2257
- Fix using literal type with add column by @ndm2 in #2255
- Make Abstract{Migration,Seed}::getAdapter return non-null by @MasterOdin in #2261
Docs
- Reword null option description by @MasterOdin in #2262
Misc
- Bump actions/cache from 3 to 4 by @dependabot in #2260
New Contributors
- @DrewKolstad made their first contribution in #2228
- @cergfix made their first contribution in #2253
Full Changelog: 0.15.5...0.16.0