Файловый менеджер - Редактировать - /home/gqdcvggs/ise.imators.systems/database/migrations/2025_05_29_130321_create_documents_table.php
Назад
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { public function up() { Schema::create('documents', function (Blueprint $table) { $table->id(); $table->integer('user_id'); $table->string('title'); $table->longText('content'); $table->enum('status', ['draft', 'published'])->default('draft'); $table->timestamps(); $table->timestamp('last_accessed_at')->nullable(); $table->index('user_id'); $table->index('status'); }); } public function down() { Schema::dropIfExists('documents'); } };
| ver. 1.6 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка