PATH:
home
/
rwabteecom
/
public_html_olld
/
database
/
migrations
/
Editing: 2021_11_29_103042_create_social_links_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::create('social_links', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('vcard_id'); $table->string('website')->nullable(); $table->string('twitter')->nullable(); $table->string('facebook')->nullable(); $table->string('instagram')->nullable(); $table->string('youtube')->nullable(); $table->string('reddit')->nullable(); $table->string('tumblr')->nullable(); $table->string('linkedin')->nullable(); $table->string('whatsapp')->nullable(); $table->string('pinterest')->nullable(); $table->timestamps(); $table->foreign('vcard_id')->references('id')->on('vcards') ->onUpdate('cascade') ->onDelete('cascade'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('social_links'); } };
SAVE
CANCEL