EscolaLMS/Cart

View on GitHub
database/migrations/2023_04_24_000000_product_description_to_text.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

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

class ProductDescriptionToText extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('products', function (Blueprint $table) {
            $table->text('description')->change();
        });

    }

    public function down()
    {
        Schema::table('products', function (Blueprint $table) {
            $table->string('description')->change();
        });
    }
}