Files
Website/database/migrations/2024_04_04_093000_create_locations_table.php
2024-04-22 18:16:33 +10:00

32 lines
741 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('locations', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->string('name');
$table->string('address')->nullable();
$table->string('address_url')->nullable();
$table->string('url')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('locations');
}
};