firefly-iii/database/migrations/2016_10_09_150037_expand_transactions_table.php

44 lines
915 B
PHP
Raw Normal View History

2016-10-09 10:06:52 -05:00
<?php
2017-08-12 03:27:45 -05:00
/**
* 2016_10_09_150037_expand_transactions_table.php
2017-08-18 14:08:51 -05:00
* Copyright (c) 2017 thegrumpydictator@gmail.com
* 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.
*
* @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
}
);
}
}