ok

Mini Shell

Direktori : /home2/selectio/www/bharath/a1tex.in/database/migrations/
Upload File :
Current File : /home2/selectio/www/bharath/a1tex.in/database/migrations/2021_10_15_213454_update_string_limit.php

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class UpdateStringLimit extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('orders', function (Blueprint $table) {
            $table->string('order_status',50)->change();
            $table->string('payment_method',100)->change();
            $table->float('order_amount')->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('orders', function (Blueprint $table) {
            //
        });
    }
}

Zerion Mini Shell 1.0