Viewing: 2023_12_29_100000_make_prospectus_columns_nullable.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('prospectus', function (Blueprint $table) { $table->string('title')->nullable()->change(); $table->string('slug')->nullable()->change(); // $table->integer('story_id')->nullable()->change(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('prospectus', function (Blueprint $table) { // }); } };
Return