Skip to content

v0.1.2

Choose a tag to compare

@awcodes awcodes released this 23 Nov 17:24
819afe9

Rollbacks never drop data

Every Vitals migration skips tables and columns your application already has, but until now its down() dropped them anyway. Rolling back the batch after adopting Vitals over existing tables could delete all monitoring history, and monitor names where name existed before Vitals.

  • down() drops nothing in all four migrations. A rollback can't tell what Vitals created from what your application already had, so it leaves everything, with its data. Uninstalling is a manual step; see Installation.
  • Upgrading from 0.1.0 or 0.1.1: published migrations belong to your application and aren't updated by Composer. Make down() empty in each of the four Vitals migrations in database/migrations. Nothing else changes.

What's Changed

  • Never drop data when the migrations roll back by @awcodes in #9

Full Changelog: v0.1.1...v0.1.2