feat: implementation du role Gestionnaire RH et refonte de la gestion des offres
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?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('job_positions', function (Blueprint $table) {
|
||||
$table->timestamp('expires_at')->nullable()->after('description');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('job_positions', function (Blueprint $table) {
|
||||
$table->dropColumn('expires_at');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,50 @@
|
||||
<?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('candidates', function (Blueprint $table) {
|
||||
$table->string('birth_name')->nullable()->after('user_id');
|
||||
$table->string('usage_name')->nullable()->after('birth_name');
|
||||
$table->string('first_name')->nullable()->after('usage_name');
|
||||
$table->string('address')->nullable()->after('first_name');
|
||||
$table->string('zip_code')->nullable()->after('address');
|
||||
$table->date('birth_date')->nullable()->after('city');
|
||||
$table->string('birth_place')->nullable()->after('birth_date');
|
||||
$table->string('nationality')->nullable()->after('birth_place');
|
||||
$table->string('current_situation')->nullable()->after('nationality');
|
||||
$table->string('education_level')->nullable()->after('current_situation');
|
||||
$table->boolean('has_driving_license')->default(false)->after('education_level');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('candidates', function (Blueprint $table) {
|
||||
$table->dropColumn([
|
||||
'birth_name',
|
||||
'usage_name',
|
||||
'first_name',
|
||||
'address',
|
||||
'zip_code',
|
||||
'birth_date',
|
||||
'birth_place',
|
||||
'nationality',
|
||||
'current_situation',
|
||||
'education_level',
|
||||
'has_driving_license'
|
||||
]);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user