applicant-site/database/migrations/2024_03_20_070333_create_ne...

31 lines
642 B
PHP
Raw Permalink Normal View History

2024-03-20 13:09:39 +03:00
<?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('news', function (Blueprint $table) {
$table->id();
$table->string('name', 255);
$table->text('text');
$table->string('photo', 255);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('news');
}
};