Skip to content

Commit

Permalink
Migration to update payload_data column
Browse files Browse the repository at this point in the history
  • Loading branch information
choules committed Oct 29, 2021
1 parent 092cdc9 commit 495a51a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions migrations/2021_10_29_092810_profile_update_profile_data.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Capsule\Manager as Capsule;

class ProfileUpdateProfileData extends Migration
{
private $tableName = 'profile';

public function up()
{
$capsule = new Capsule();
$capsule::schema()->table($this->tableName, function (Blueprint $table) {
$table->longText('profile_data')->nullable()->change();
});
}

public function down()
{
$capsule = new Capsule();
$capsule::schema()->table($this->tableName, function (Blueprint $table) {
$table->text('profile_data')->change();
});
}
}

0 comments on commit 495a51a

Please sign in to comment.