2016-10-09 17:06:52 +02:00
|
|
|
<?php
|
2017-08-12 10:27:45 +02:00
|
|
|
|
2016-12-05 21:58:23 +01:00
|
|
|
/**
|
|
|
|
|
* 2016_10_09_150037_expand_transactions_table.php
|
2017-08-18 21:08:51 +02:00
|
|
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
2016-12-05 21:58:23 +01: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 17:06:52 +02:00
|
|
|
|
2017-08-18 21:08:51 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2016-10-09 17:06:52 +02: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 14:43:42 +01:00
|
|
|
* @SuppressWarnings(PHPMD.ShortMethodName)
|
2016-10-09 17:06:52 +02:00
|
|
|
*/
|
|
|
|
|
public function up()
|
|
|
|
|
{
|
|
|
|
|
Schema::table(
|
|
|
|
|
'transactions', function (Blueprint $table) {
|
2016-10-09 21:36:22 +02:00
|
|
|
$table->smallInteger('identifier', false, true)->default(0);
|
2016-10-09 17:06:52 +02:00
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|