phase two updates
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void { Schema::create('pages', function (Blueprint $table): void { $table->id();
|
||||
$table->string('title');
|
||||
$table->string('slug');
|
||||
$table->text('summary')->nullable();
|
||||
$table->longText('content')->nullable();
|
||||
$table->string('status')->default('draft');
|
||||
$table->timestamp('published_at')->nullable();
|
||||
$table->boolean('is_home')->default(false);
|
||||
$table->timestamps(); $table->softDeletes(); }); }
|
||||
public function down(): void { Schema::dropIfExists('pages'); }
|
||||
};
|
||||
Reference in New Issue
Block a user