File: /home/xedaptot/be.naniguide.com/database/migrations/2021_01_25_155902_add_data_to_plugins.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddDataToPlugins extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('plugins', function (Blueprint $table) {
$table->longText('data')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('plugins', function (Blueprint $table) {
$table->dropColumn('data');
});
}
}