• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ALERT: Major migration refactor just merged

#1
This is that last of the known breaking changes, and one that had been bugging me for a while. Thanks to those that prodded this change on, we now have a bit more cohesive migration change. Follow the link to see all of the gory details, but here's the big items:

- No more serial names (001, 002, etc). All migrations use timestamps now, which can be formatted in several ways to suit your preference.
- Class names have changed, they're now Pascal-cased like all other classes in the system, and do not need Migration_ at the beginning of the name. This was unnecessary since they're all namespaced now.
- Command name has changed from migrate:latest to simply migrate.
- When running php spark migrate -all it now pulls together all migrations across all namespaces and sorts them by their timestamp, instead of treating each namespace separately.

Follow Full details here
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply

#2
This is great, a really good backend change and ease-of-life for developers.
I'm afraid I already know the answer... but I don't see any resources or tests for what is now legacy migrations table - will existing projects need to rebuild manually?
Reply

#3
(08-12-2019, 12:28 PM)MGatner Wrote: This is great, a really good backend change and ease-of-life for developers.
I'm afraid I already know the answer... but I don't see any resources or tests for what is now legacy migrations table - will existing projects need to rebuild manually?

Unfortunately yes.
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.