Server IP : 66.29.132.124 / Your IP : 3.139.72.210 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/database/migrations/ |
Upload File : |
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMediaFilesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('media_files', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('file_name',255)->nullable(); $table->string('file_path',255)->nullable(); $table->string('file_size',255)->nullable(); $table->string('file_type',255)->nullable(); $table->string('file_extension',255)->nullable(); $table->integer('create_user')->nullable(); $table->integer('update_user')->nullable(); $table->softDeletes(); $table->integer('app_id')->nullable(); $table->integer('app_user_id')->nullable(); $table->integer('file_width')->nullable(); $table->integer('file_height')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('media_files'); } }