BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
.
/
app.imagivibe.com
/
database
/
migrations
📤 Upload
📝 New File
📁 New Folder
Close
Editing: 2024_12_16_074143_add_column_to_scheduled_posts_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(): void { if (Schema::hasTable('scheduled_posts')) { Schema::table('scheduled_posts', function (Blueprint $table) { $table->text('content')->nullable()->after('prompt'); $table->text('media')->nullable()->after('content'); $table->boolean('auto_generate')->default(false)->nullable()->after('media'); }); } } public function down(): void { if (Schema::hasTable('scheduled_posts')) { Schema::table('scheduled_posts', function (Blueprint $table) { $table->dropColumn(['content', 'media', 'auto_generate']); }); } } };
Save
Cancel