feat: add internship date fields and business day calculation to career applications

This commit is contained in:
Ümit Tunç
2026-06-01 08:02:36 +03:00
parent e24b4bdf41
commit aa48ce7890
5 changed files with 125 additions and 2 deletions
@@ -0,0 +1,30 @@
<?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('career_applications', function (Blueprint $table) {
$table->date('internship_start_date')->nullable()->after('to_be_signed_internship_form_path');
$table->date('internship_end_date')->nullable()->after('internship_start_date');
$table->integer('internship_total_days')->nullable()->after('internship_end_date');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('career_applications', function (Blueprint $table) {
$table->dropColumn(['internship_start_date', 'internship_end_date', 'internship_total_days']);
});
}
};