-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TM-1531] delayed job with data (#610)
* [TM-1531] entity record and creator to delayedJOb * [TM-1531] add useer to endpoint * [TM-1531] add entity data for polygons validations * [TM-1531] lint * [TM-1531] add is_cleared * [TM-1531] add to fix polygons entity * [TM-1531] store delayed data for uploads * [TM-1531] send mails when job for upload, check or fix is complete * [TM-1531] send correct user for mails * [TM-1531] modify column name on delayed jobs table * [TM-1531] change attribute name to progress message * [TM-1531] lint fix * [TM-1531] change to is_aknowledged value * [TM-1531] change created_by type, change to is_acknowledge --------- Co-authored-by: JORGE <[email protected]>
- Loading branch information
1 parent
8a0dc46
commit 3a83f0b
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
database/migrations/2024_12_09_212253_change_is_cleared_values.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration { | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::table('delayed_jobs', function (Blueprint $table) { | ||
$table->unsignedBigInteger('created_by')->nullable()->change(); | ||
|
||
$table->dropColumn('is_cleared'); | ||
|
||
$table->boolean('is_acknowledged')->default(true); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::table('delayed_jobs', function (Blueprint $table) { | ||
if (Schema::hasColumn('delayed_jobs', 'createdBy')) { | ||
$table->string('createdBy')->nullable()->change(); | ||
} | ||
|
||
if (Schema::hasColumn('delayed_jobs', 'is_acknowledged')) { | ||
$table->dropColumn('is_acknowledged'); | ||
} | ||
|
||
if (! Schema::hasColumn('delayed_jobs', 'is_cleared')) { | ||
$table->boolean('is_cleared')->default(false); | ||
} | ||
}); | ||
} | ||
}; |