Your IP : 3.149.249.84


Current Path : /home/lentoinv/api.lentoria.com/database/migrations/
Upload File :
Current File : /home/lentoinv/api.lentoria.com/database/migrations/2022_09_13_140133_add_col_to_lectures_table.php

<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('lectures', function (Blueprint $table) {
            $table->string('image')->nullable();
            $table->longText('code')->nullable();
            $table->longText('text')->nullable();
        });
    }

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

?>