First attempt at new month report.

This commit is contained in:
James Cole
2014-12-25 09:50:01 +01:00
parent 1659904f81
commit 290f25f1a0
9 changed files with 221 additions and 57 deletions

View File

@@ -13,7 +13,7 @@ class ChangesForV322 extends Migration
*/
public function down()
{
// TODO
}
@@ -27,6 +27,8 @@ class ChangesForV322 extends Migration
// rename tables:
Schema::rename('piggybank_repetitions', 'piggy_bank_repetitions');
Schema::rename('piggybanks', 'piggy_banks');
// rename fields
Schema::table(
'piggy_bank_events', function (Blueprint $table) {
$table->renameColumn('piggybank_id', 'piggy_bank_id');
@@ -38,6 +40,13 @@ class ChangesForV322 extends Migration
$table->renameColumn('piggybank_id', 'piggy_bank_id');
}
);
// add soft delete to piggy banks
Schema::table(
'piggy_banks', function (Blueprint $table) {
$table->softDeletes();
}
);
}
}