Add tag count to journal for easier amount calculations [skip ci]

This commit is contained in:
James Cole
2015-06-14 11:52:07 +02:00
parent e36717259b
commit 1e86794416
3 changed files with 97 additions and 23 deletions

View File

@@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
/**
* Class ChangesForV345
*/
class ChangesForV345 extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table(
'transaction_journals', function (Blueprint $table) {
$table->dropColumn('tag_count');
}
);
}
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table(
'transaction_journals', function (Blueprint $table) {
$table->smallInteger('tag_count', false, true)->default(0);
}
);
}
}