Files
database-pertani-web/database/migrations/2026_04_16_172905_update_profiles_table.php
T

26 lines
505 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::table('profiles', function (Blueprint $table) {
$table->foreignId('adat_id')->nullable()->constrained('adat');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
}
};