Skip to content

Releases: mahmoudmohamedramadan/custom-fresh

v2.0.0

11 Jun 22:04

Choose a tag to compare

Changed

  • Enhance table discovery for Laravel 12+ by conditionally using getCurrentSchemaListing() when available.
  • Refactor connection and database resolution to use dedicated methods for improved clarity and consistency across table operations and lifecycle events.

Full Changelog: v1.2.3...v2.0.0

v2.0.0-alpha.1

11 Jun 19:38

Choose a tag to compare

v2.0.0-alpha.1 Pre-release
Pre-release

Changed

  • Replace laravel/framework with individual illuminate/* components to decouple the package from the full Laravel framework and enable compatibility across Laravel 10.0–13.0.

Full Changelog: v1.2.3...v2.0.0-alpha.1

v1.2.3

05 Jun 23:14

Choose a tag to compare

Fixed

  • Fix table discovery to pass the current schema listing to Schema::getTables() instead of the database name.
  • Forward the connection name (not the database name) to the underlying migrate call's --database option.

Full Changelog: v1.2.2...v1.2.3

v1.2.2

05 Jun 22:44

Choose a tag to compare

Added

  • Add $database to the RefreshingDatabase, TablesDropped, and DatabaseRefreshed lifecycle events, and update their constructor argument order accordingly.
  • The --explain output now displays both the active connection name and database name, making it easier to verify the exact database context before running the command.

Fixed

  • Resolve the booted connection and database name from --database, pass the database name to Schema::getTables() and the underlying migrate call, print both in --explain output, and dispatch lifecycle events with the resolved values so table discovery, drops, and migrations target the correct database.

Full Changelog: v1.2.1...v1.2.2

v1.2.1

05 Jun 11:42

Choose a tag to compare

Fixed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

28 May 23:16

Choose a tag to compare

Added

  • Add the --database= option and forwards it to the underlying migrate call.
  • Add the --keep= flag as an alias for the positional argument and supports glob patterns (e.g., oauth_*).
  • Add the --explain dry-run mode that previews the work without touching the database.
  • Add a publishable config file (custom-fresh.php) with always_keep, patterns, and confirm_in keys.
  • Add the RefreshingDatabase, TablesDropped, and DatabaseRefreshed lifecycle events.
  • Wrap the migrations table reset inside the foreign-key-disabled block, uses pathinfo instead of substr to derive migration names, returns Command::SUCCESS / Command::FAILURE constants, and rewords the argument description.

Fixed

  • Defer the database/filesystem bootstrap from __construct to handle() so the package no longer hits the database on every artisan invocation.
  • Fix migration discovery by replacing filename heuristics with real Schema::* parsing, capturing all matching alter migrations, and scanning nested and registered migration paths.

Full Changelog: v1.1.9...v1.2.0

v1.2.0-alpha.1

07 May 00:31
de1c8de

Choose a tag to compare

v1.2.0-alpha.1 Pre-release
Pre-release

Added

  • Add the --database= option and forwards it to the underlying migrate call.
  • Add the --keep= flag as an alias for the positional argument and supports glob patterns (e.g., oauth_*).
  • Add the --explain dry-run mode that previews the work without touching the database.
  • Add a publishable config file (custom-fresh.php) with always_keep, patterns, and confirm_in keys.
  • Add the RefreshingDatabase, TablesDropped, and DatabaseRefreshed lifecycle events.
  • Wrap the migrations table reset inside the foreign-key-disabled block, uses pathinfo instead of substr to derive migration names, returns Command::SUCCESS / Command::FAILURE constants, and rewords the argument description.

Fixed

  • Defer the database/filesystem bootstrap from __construct to handle() so the package no longer hits the database on every artisan invocation.
  • Fix migration discovery by replacing filename heuristics with real Schema::* parsing, capturing all matching alter migrations, and scanning nested and registered migration paths.

Full Changelog: v1.1.9...v1.2.0-alpha.1

v1.1.9

01 May 14:06

Choose a tag to compare

Added

  • Adds compatibility to support Laravel v13 and introduces a refreshed package logo.

Full Changelog: v1.1.8...v1.1.9

v1.1.8

27 Feb 22:54
ad33469

Choose a tag to compare

Added

  • Add compatibility to support Laravel v12 in #12 and #13.

Full Changelog: v1.1.8...v1.1.7

v1.1.7

13 Nov 08:02

Choose a tag to compare

Added

  • Add the graceful option to the command in #11.

Changed

  • Refactor the code.

Full Changelog: v1.1.6...v1.1.7