Add happened_on fields to earnings/spendings tables
MODIFY
database/migrations/2017_07_23_111013_create_spendings_table.php
database/migrations/2017_07_23_111013_create_spendings_table.php
@@ -10,6 +10,7 @@ class CreateSpendingsTable extends Migration {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->integer('tag_id')->unsigned()->nullable();
+ $table->date('happened_on');
$table->string('description');
$table->integer('amount');
$table->timestamps();

MODIFY
database/migrations/2017_07_23_112354_create_earnings_table.php
database/migrations/2017_07_23_112354_create_earnings_table.php
@@ -9,6 +9,7 @@ class CreateEarningsTable extends Migration {
Schema::create('earnings', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
+ $table->date('happened_on');
$table->string('description');
$table->integer('amount');
$table->timestamps();

Add happened_on fields to earnings/spendings tables