Skip to content

v2.8.1 — Re-runnable migrations

Latest

Choose a tag to compare

@BrunosCode BrunosCode released this 21 Oct 13:59
· 2 commits to main since this release

Fixed

  • The published migration stubs skip tables that already exist. create_translation_keys_table and create_translation_values_table failed with "table already exists" when the tables had been created first, typically by brunoscode/twill-translation-handler, whose migrations create them too, or by an earlier publish of the stubs. Both now return early when the table is present, leaving its data and any extra columns (such as Twill's published / active) untouched.

Migrations already published in an app keep their old content: if one has not run yet and the table may already exist, add the same if (Schema::hasTable(...)) { return; } guard to it by hand. Re-publishing would add a second copy with a new timestamp.

Full Changelog: v2.8.0...v2.8.1