KUJUNTI.ID MINISH3LL
Path : /var/www/clients/client0/web25/web/database/migrations/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/clients/client0/web25/web/database/migrations/2023_01_08_073418_create_images_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.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('images', function (Blueprint $table) {
             $table->engine = 'InnoDB';
            $table->id();
            $table->string('title');
            $table->string('url');
            $table->foreignId('staff_id')->nullable(true)->constrained()->onDelete('cascade');
            $table->foreignId('rubric_id')->nullable(true)->constrained()->onDelete('cascade');
            $table->foreignId('post_id')->nullable(true)->constrained()->onDelete('cascade');
            $table->foreignId('news_id')->nullable(true)->constrained()->onDelete('cascade');
            $table->foreignId('event_id')->nullable(true)->constrained()->onDelete('cascade');
            $table->foreignId('testimonial_id')->nullable(true)->constrained()->onDelete('cascade');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('images');
    }
};

© KUJUNTI.ID

Website Feedback Form

Please fill out the form below to send us your feedback.




Contact Support