mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Renamed a table, added a bug fix.
This commit is contained in:
@@ -17,9 +17,10 @@ class ChangesForV321 extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::rename('budget_limits','limits');
|
||||
Schema::rename('budget_limits', 'limits');
|
||||
Schema::rename('piggy_bank_events', 'piggybank_events');
|
||||
DB::update(DB::raw('ALTER TABLE `limit_repetitions` ALGORITHM=INPLACE, CHANGE `budget_limit_id` `limit_id` INT UNSIGNED NOT NULL'));
|
||||
DB::update(DB::Raw('ALTER TABLE `transactions` ADD `piggybank_id` int(10) unsigned DEFAULT NULL AFTER `account_id`;'));
|
||||
DB::update(DB::Raw('ALTER TABLE `transactions` ADD `piggybank_id` INT(10) UNSIGNED DEFAULT NULL AFTER `account_id`;'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -29,9 +30,10 @@ class ChangesForV321 extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::rename('limits','budget_limits');
|
||||
Schema::rename('limits', 'budget_limits');
|
||||
DB::update(DB::raw('ALTER TABLE `limit_repetitions` ALGORITHM=INPLACE, CHANGE `limit_id` `budget_limit_id` INT UNSIGNED NOT NULL'));
|
||||
DB::update(DB::Raw('ALTER TABLE `transactions` DROP `piggybank_id`'));
|
||||
Schema::rename('piggybank_events', 'piggy_bank_events');
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user