Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix migration thing.
James Cole1d1eb5ffa840
diff --git a/database/migrations/2015_06_22_192411_changes_for_v3451.php b/database/migrations/2015_06_22_192411_changes_for_v3451.phpindex f852fda93b..d2fa94c558 100644--- a/database/migrations/2015_06_22_192411_changes_for_v3451.php+++ b/database/migrations/2015_06_22_192411_changes_for_v3451.php@@ -15,10 +15,29 @@ class ChangesForV3451 extends Migration*/public function down(){+ Schema::create(+ 'reminders', function (Blueprint $table) {+ $table->increments('id');+ $table->timestamps();+ $table->integer('user_id')->unsigned();+ $table->date('startdate');+ $table->date('enddate')->nullable();+ $table->boolean('active');+ $table->boolean('notnow')->default(0);+ $table->integer('remindersable_id')->unsigned()->nullable();+ $table->string('remindersable_type')->nullable();++ // connect reminders to users+ $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');+ }+ );++Schema::table('piggy_banks', function (Blueprint $table) {$table->smallInteger('reminder_skip')->unsigned();$table->boolean('remind_me');+ $table->enum('reminder', ['day', 'week', 'quarter', 'month', 'year'])->nullable();});@@ -33,9 +52,11 @@ class ChangesForV3451 extends Migration{Schema::table('piggy_banks', function (Blueprint $table) {- //$table->dropColumn('reminder_skip');+ $table->dropColumn('reminder_skip');$table->dropColumn('remind_me');+ $table->dropColumn('reminder');});+ Schema::drop('reminders');}}