AddPageDrafts::up PHP Method

up() public method

Run the migrations.
public up ( ) : void
return void
    public function up()
    {
        Schema::table('pages', function (Blueprint $table) {
            $table->boolean('draft')->default(false);
            $table->index('draft');
        });
    }
AddPageDrafts