PATH:
home
/
rwabteecom
/
project_11
/
database
/
migrations
/
Editing: 2024_03_31_191047_add_seo_to_domains_table.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. */ public function up(): void { Schema::table('domains', function (Blueprint $table) { $table->string('meta_title')->nullable(); $table->string('meta_description')->nullable(); $table->string('meta_keywords')->nullable(); $table->string('default_link_language')->nullable(); $table->string('google_analytics_gt4_id')->nullable(); $table->boolean('google_analytics_gt4_status')->default(false); $table->string('google_tag_manager_id')->nullable(); $table->boolean('google_tag_manager_status')->default(false); $table->string('facebook_pixels_id')->nullable(); $table->boolean('facebook_pixels_status')->default(false); $table->string('messanger_page_id')->nullable(); $table->boolean('messanger_status')->default(false); $table->string('snapchat_pixels_id')->nullable(); $table->boolean('snapchat_pixels_status')->default(false); }); } /** * Reverse the migrations. */ public function down(): void { Schema::table('domains', function (Blueprint $table) { $table->dropColumn('meta_title'); $table->dropColumn('meta_description'); $table->dropColumn('meta_keywords'); $table->dropColumn('default_link_language'); $table->dropColumn('google_analytics_gt4_id'); $table->dropColumn('google_analytics_gt4_status'); $table->dropColumn('google_tag_manager_id'); $table->dropColumn('google_tag_manager_status'); $table->dropColumn('facebook_pixels_id'); $table->dropColumn('facebook_pixels_status'); $table->dropColumn('messanger_page_id'); $table->dropColumn('messanger_status'); $table->dropColumn('snapchat_pixels_id'); $table->dropColumn('snapchat_pixels_status'); }); } };
SAVE
CANCEL