Updated tests.

This commit is contained in:
James Cole
2014-12-20 15:00:53 +01:00
parent e86547645c
commit 82e438d29b
44 changed files with 2000 additions and 306 deletions

View File

@@ -22,6 +22,7 @@ use Illuminate\Database\Schema\Blueprint;
* 15. Do not recreate component_recurring_transaction
* 16. Do not recreate component_transaction
* 17. Do not recreate field 'piggybank_id' in 'transactions'
* 18. Recreate component_id in limits
*
*
* Up:
@@ -41,7 +42,7 @@ use Illuminate\Database\Schema\Blueprint;
* 13. Drop table component_recurring_transaction
* 14. Drop table component_transaction
* 15. Drop field 'piggybank_id' from 'transactions'
*
* 16. Drop component_id from budget_limits.
*
* Class ChangesForV321
*/
@@ -230,6 +231,7 @@ class ChangesForV321 extends Migration
$this->dropComponentRecurringTransactionTable(); // 13.
$this->dropComponentTransactionTable(); // 14.
$this->dropPiggyBankIdFromTransactions(); // 15.
$this->dropComponentIdFromBudgetLimits(); // 16.
// $this->doRenameInLimitRepetitions();
@@ -431,6 +433,16 @@ class ChangesForV321 extends Migration
);
}
public function dropComponentIdFromBudgetLimits()
{
Schema::table(
'budget_limits', function (Blueprint $table) {
$table->dropForeign('limits_component_id_foreign');
$table->dropColumn('component_id');
}
);
}
//
// public function doRenameInLimitRepetitions()
// {