Featured tours working
This commit is contained in:
32
database/migrations/2025_09_15_014700_create_tours_table.php
Normal file
32
database/migrations/2025_09_15_014700_create_tours_table.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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('tours', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('internal_name');
|
||||
$table->string('short_description');
|
||||
$table->integer('length');
|
||||
$table->integer('price');
|
||||
$table->string('level');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tours');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user