feat: add internship date fields and business day calculation to career applications
This commit is contained in:
+30
@@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user