From a703799d324fd81b8086d49e71e5bea48fc0f4c7 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 13 Oct 2022 22:17:34 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=A7=BE=20Update=20CHANGELOG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/prologue/changelog/3.x.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/prologue/changelog/3.x.md b/docs/prologue/changelog/3.x.md index 184681bb..6d6dff98 100644 --- a/docs/prologue/changelog/3.x.md +++ b/docs/prologue/changelog/3.x.md @@ -1,5 +1,31 @@ # 3.x +## v3.0.0 - 2022-10-13 + +### Added + +- Added recursive search for files in the selected directory +- Added console command for upgrade + +### Changed + +- Changed configuration file location +- Changed the location of the action storage directory +- Changed namespace to `DragonCode\LaravelActions\Action` +- Action classes changed to anonymous +- Changed spelling of class parameters from `snake_case` to `camelCase` +- Changed the name of the column in the database + +### Removed + +- Removed support for PHP 7.3 and 7.4 +- Removed support for Laravel 6.x +- Removed use of interface Contracts + +See the [`upgrade manual`](https://actions.dragon-code.pro/prologue/upgrade.html) for more information. + +**Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v2.9.0...v3.0.0 + ## v3.0-RC8 - 2022-10-12 **Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v3.0-RC7...v3.0-RC8 From 25353cad8151ef43919ca903ff3b32358f738988 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Fri, 14 Oct 2022 01:37:21 +0300 Subject: [PATCH 2/4] Update 3.x.md --- docs/prologue/changelog/3.x.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/prologue/changelog/3.x.md b/docs/prologue/changelog/3.x.md index 6d6dff98..da64ef37 100644 --- a/docs/prologue/changelog/3.x.md +++ b/docs/prologue/changelog/3.x.md @@ -25,15 +25,3 @@ See the [`upgrade manual`](https://actions.dragon-code.pro/prologue/upgrade.html) for more information. **Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v2.9.0...v3.0.0 - -## v3.0-RC8 - 2022-10-12 - -**Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v3.0-RC7...v3.0-RC8 - -## v3.0-RC6 - 2022-10-12 - -**Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v3.0-RC4...v3.0-RC6 - -## v3.0-RC2 - 2022-10-12 - -**Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v3.0-RC1...v3.0-RC2 From 989004f4f9096db46e4f978a6a6f74e1ad823bbe Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Sun, 16 Oct 2022 22:57:50 +0300 Subject: [PATCH 3/4] Update output styles --- src/Notifications/Basic.php | 4 +++- src/Services/Migrator.php | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Notifications/Basic.php b/src/Notifications/Basic.php index b803774a..4632d739 100644 --- a/src/Notifications/Basic.php +++ b/src/Notifications/Basic.php @@ -42,6 +42,8 @@ public function task(string $description, Closure $task): void public function twoColumn(string $first, string $second): void { - $this->info($first . ' .......... ' . $second); + $divider = str_pad('', 20, '.'); + + $this->info($first . ' ' . $divider . ' ' . $second); } } diff --git a/src/Services/Migrator.php b/src/Services/Migrator.php index 5d4e6ac3..80094366 100644 --- a/src/Services/Migrator.php +++ b/src/Services/Migrator.php @@ -20,11 +20,11 @@ class Migrator { public function __construct( - protected File $file, - protected Notification $notification, + protected File $file, + protected Notification $notification, protected ActionRepository $repository, - protected Config $config, - protected Application $laravel + protected Config $config, + protected Application $laravel ) { } @@ -62,7 +62,7 @@ public function runUp(string $filename, int $batch, Options $options): void return; } - $this->notification->twoColumn($name, 'SKIP'); + $this->notification->twoColumn($name, 'SKIPPED'); } public function runDown(string $filename, Options $options): void From b14500ec91f7cdbf4cc93d49e2db116611f5b840 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 16 Oct 2022 20:01:02 +0000 Subject: [PATCH 4/4] =?UTF-8?q?Update=20code-style=20=F0=9F=92=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Services/Migrator.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Services/Migrator.php b/src/Services/Migrator.php index 80094366..bea9e949 100644 --- a/src/Services/Migrator.php +++ b/src/Services/Migrator.php @@ -20,11 +20,11 @@ class Migrator { public function __construct( - protected File $file, - protected Notification $notification, + protected File $file, + protected Notification $notification, protected ActionRepository $repository, - protected Config $config, - protected Application $laravel + protected Config $config, + protected Application $laravel ) { }