(Add) Alter Bon Transactions Table Migration

Support for post_id.

Did not foreign key this because... of planned redo of migration files.
This commit is contained in:
singularity43
2019-01-23 15:30:49 -05:00
parent 86233fde65
commit 28ee3b9f34
@@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterBonTransactionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('bon_transactions', function (Blueprint $table) {
$table->integer('post_id')->nullable()->index()->after('torrent_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('bon_transactions', function (Blueprint $table) {
//
});
}
}