⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
work
/
modules
/
Media
/
Database
/
Migrations
/
View File Name :
2022_07_13_082318_create_media_folder_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMediaFolderTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('media_folders', function (Blueprint $table) { $table->id(); $table->string('name'); $table->bigInteger('parent_id')->nullable()->default(0); $table->bigInteger('user_id')->nullable(); $table->integer('create_user')->nullable(); $table->integer('update_user')->nullable(); $table->unique(['parent_id','name']); $table->timestamps(); }); Schema::table('media_files', function (Blueprint $table) { if (!Schema::hasColumn('media_files', 'folder_id')) { $table->bigInteger('folder_id')->nullable()->default(0); } if (!Schema::hasColumn('media_files', 'driver')) { $table->string('driver',255)->nullable(); } }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('media_folders'); } }