sarga/database/migrations/2022_04_01_094622_create_si...

36 lines
723 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.
*
* @return void
*/
public function up()
{
Schema::create('sitemaps', function (Blueprint $table) {
$table->increments('id');
$table->string('file_name');
$table->string('path');
$table->datetime('generated_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('sitemaps');
}
};