34 lines
786 B
PHP
34 lines
786 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('tours', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('name');
|
|
$table->string('internal_name');
|
|
$table->string('short_description');
|
|
$table->string('long_description');;
|
|
$table->integer('length');
|
|
$table->integer('price');
|
|
$table->string('level');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('tours');
|
|
}
|
|
};
|