Loading database/migrations/2024_06_30_200630_create_redes_sociales_table.php 0 → 100644 +32 −0 Original line number Diff line number Diff line <?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('redes_sociales', function (Blueprint $table) { $table->id(); $table->string('red_social')->nullable(); $table->string('tipo_red_social')->nullable(); $table->unsignedBigInteger('contacto_id'); $table->timestamps(); $table->foreign('contacto_id')->references('id')->on('contactos'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('redes_sociales'); } }; Loading
database/migrations/2024_06_30_200630_create_redes_sociales_table.php 0 → 100644 +32 −0 Original line number Diff line number Diff line <?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('redes_sociales', function (Blueprint $table) { $table->id(); $table->string('red_social')->nullable(); $table->string('tipo_red_social')->nullable(); $table->unsignedBigInteger('contacto_id'); $table->timestamps(); $table->foreign('contacto_id')->references('id')->on('contactos'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('redes_sociales'); } };