Skip to content

Commit

Permalink
avoid use of enum in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
esizer committed May 22, 2024
1 parent 9eb15bf commit eeee9fb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

use App\Enums\NotificationFamily;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
Expand All @@ -9,8 +8,8 @@
return new class extends Migration
{
private $notificationFamilies = [
NotificationFamily::APPLICATION_UPDATE->name,
NotificationFamily::JOB_ALERT->name,
'APPLICATION_UPDATE',
'JOB_ALERT',
];

private function invertFamilies(?string $row): string
Expand Down

0 comments on commit eeee9fb

Please sign in to comment.