2016-10-09 10:06:52 -05:00
|
|
|
<?php
|
2017-08-12 03:27:45 -05:00
|
|
|
|
2016-12-05 14:58:23 -06:00
|
|
|
/**
|
|
|
|
* 2016_10_09_150037_expand_transactions_table.php
|
2017-08-18 14:08:51 -05:00
|
|
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
2016-12-05 14:58:23 -06:00
|
|
|
* This software may be modified and distributed under the terms of the
|
|
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
*/
|
2016-10-09 10:06:52 -05:00
|
|
|
|
2017-08-18 14:08:51 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2016-10-09 10:06:52 -05:00
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class ExpandTransactionsTable
|
|
|
|
*/
|
|
|
|
class ExpandTransactionsTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
2016-12-24 07:43:42 -06:00
|
|
|
* @SuppressWarnings(PHPMD.ShortMethodName)
|
2016-10-09 10:06:52 -05:00
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::table(
|
|
|
|
'transactions', function (Blueprint $table) {
|
2016-10-09 14:36:22 -05:00
|
|
|
$table->smallInteger('identifier', false, true)->default(0);
|
2016-10-09 10:06:52 -05:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|