diff --git a/app/Listeners/Update/V21/Version2134.php b/app/Listeners/Update/V21/Version2134.php new file mode 100644 index 000000000..a5da96219 --- /dev/null +++ b/app/Listeners/Update/V21/Version2134.php @@ -0,0 +1,30 @@ +skipThisUpdate($event)) { + return; + } + + Artisan::call('migrate', ['--force' => true]); + } +} diff --git a/app/Providers/Event.php b/app/Providers/Event.php index c53347910..d792276a7 100644 --- a/app/Providers/Event.php +++ b/app/Providers/Event.php @@ -40,6 +40,7 @@ class Event extends Provider 'App\Listeners\Update\V21\Version2126', 'App\Listeners\Update\V21\Version2127', 'App\Listeners\Update\V21\Version2133', + 'App\Listeners\Update\V21\Version2134', ], 'Illuminate\Auth\Events\Login' => [ 'App\Listeners\Auth\Login', diff --git a/database/migrations/2022_03_02_000000_core_v2134.php b/database/migrations/2022_03_02_000000_core_v2134.php new file mode 100644 index 000000000..3cb64b37d --- /dev/null +++ b/database/migrations/2022_03_02_000000_core_v2134.php @@ -0,0 +1,34 @@ +string('currency_code')->change(); + }); + + Schema::table('transactions', function (Blueprint $table) { + $table->string('currency_code')->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +};