Releases: mahmoudmohamedramadan/custom-fresh
Releases · mahmoudmohamedramadan/custom-fresh
v2.0.0
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
Changed
- Replace
laravel/frameworkwith individualilluminate/*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
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
migratecall's--databaseoption.
Full Changelog: v1.2.2...v1.2.3
v1.2.2
Added
- Add
$databaseto theRefreshingDatabase,TablesDropped, andDatabaseRefreshedlifecycle events, and update their constructor argument order accordingly. - The
--explainoutput 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 toSchema::getTables()and the underlyingmigratecall, print both in--explainoutput, 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
v1.2.0
Added
- Add the
--database=option and forwards it to the underlyingmigratecall. - Add the
--keep=flag as an alias for the positional argument and supports glob patterns (e.g.,oauth_*). - Add the
--explaindry-run mode that previews the work without touching the database. - Add a publishable config file (
custom-fresh.php) withalways_keep,patterns, andconfirm_inkeys. - Add the
RefreshingDatabase,TablesDropped, andDatabaseRefreshedlifecycle events. - Wrap the
migrationstable reset inside the foreign-key-disabled block, usespathinfoinstead ofsubstrto derive migration names, returnsCommand::SUCCESS/Command::FAILUREconstants, and rewords the argument description.
Fixed
- Defer the database/filesystem bootstrap from
__constructtohandle()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
Added
- Add the
--database=option and forwards it to the underlyingmigratecall. - Add the
--keep=flag as an alias for the positional argument and supports glob patterns (e.g.,oauth_*). - Add the
--explaindry-run mode that previews the work without touching the database. - Add a publishable config file (
custom-fresh.php) withalways_keep,patterns, andconfirm_inkeys. - Add the
RefreshingDatabase,TablesDropped, andDatabaseRefreshedlifecycle events. - Wrap the
migrationstable reset inside the foreign-key-disabled block, usespathinfoinstead ofsubstrto derive migration names, returnsCommand::SUCCESS/Command::FAILUREconstants, and rewords the argument description.
Fixed
- Defer the database/filesystem bootstrap from
__constructtohandle()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
Added
- Adds compatibility to support Laravel v13 and introduces a refreshed package logo.
Full Changelog: v1.1.8...v1.1.9
v1.1.8
v1.1.7
Added
- Add the
gracefuloption to the command in #11.
Changed
- Refactor the code.
Full Changelog: v1.1.6...v1.1.7