Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home
/
qtdcvxyp
/
karir.star4hire.com
/
database
/
migrations
✏️
Editing: 2022_09_22_091237_migrate_ver_2_2_0.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class MigrateVer220 extends Migration { /** * Run the migrations. * * @return void */ public function up() { if(!Schema::hasTable('user_upgrade_request')) { Schema::create('user_upgrade_request', function (Blueprint $table) { $table->bigIncrements('id'); $table->integer('user_id')->nullable(); $table->integer('role_request')->nullable(); $table->dateTime('approved_time')->nullable(); $table->string('status',50)->nullable(); $table->integer('approved_by')->nullable(); $table->integer('create_user')->nullable(); $table->integer('update_user')->nullable(); $table->softDeletes(); $table->timestamps(); }); } if(Schema::hasTable('bc_jobs')) { Schema::table('bc_jobs', function (Blueprint $table) { if (!Schema::hasColumn('bc_jobs', 'is_approved')) { $table->string('is_approved', 30)->default("approved")->nullable(); } }); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('user_upgrade_request'); Schema::table('bc_jobs', function(Blueprint $table) { $table->dropColumn('is_approved'); }); } }
💾 Save Changes
❌ Cancel