Skip to content

Commit

Permalink
add migration for adding a column with name extradata
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaAb committed Jun 4, 2019
1 parent 67cc7cc commit 6e0555e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/database/migrations/2019_06_04_092344_edit_admin_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

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

class EditAdminTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('admins', function($table) {
$table->json('extradata');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('admins', function($table) {
$table->dropColumn('extradata');
});
}
}

0 comments on commit 6e0555e

Please sign in to comment.