33 lines
878 B
PHP
33 lines
878 B
PHP
<?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::create('naturalization', function (Blueprint $table) {
|
|
$table->id('naturalization_id');
|
|
$table->foreignId('person_id')->constrained('person', 'person_id')->cascadeOnDelete();
|
|
$table->date('date_of_naturalisation')->nullable();
|
|
$table->string('no_of_cert', 50)->nullable();
|
|
$table->string('issued_at', 100)->nullable();
|
|
$table->timestamps();
|
|
$table->softDeletes();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('naturalization');
|
|
}
|
|
};
|