35 lines
847 B
PHP
35 lines
847 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('faults', function (Blueprint $table) {
|
||
|
$table->id();
|
||
|
$table->string('contact_name'); // This column must exist
|
||
|
$table->string('contact_phone');
|
||
|
$table->text('description');
|
||
|
$table->string('address');
|
||
|
$table->string('status');
|
||
|
$table->string('google_maps_link');
|
||
|
$table->string('city');
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('faults');
|
||
|
}
|
||
|
};
|