MINI Sh3ll
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterRegisterApiAddColumns extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('register_api', function($table){
$table->string('z_value')->after('y_value')->nullable();
$table->string('unit_value')->after('z_value')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('register_api', function($table){
$table->dropColumn('z_value');
$table->dropColumn('unit_value');
});
}
}
OHA YOOOO