Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Lets see if this fixes the database.
James Colecc55e2acee57
diff --git a/database/migrations/2014_06_27_163818_create_piggybanks_table.php b/database/migrations/2014_06_27_163818_create_piggybanks_table.phpindex d15420d9c4..827c5f4c48 100644--- a/database/migrations/2014_06_27_163818_create_piggybanks_table.php+++ b/database/migrations/2014_06_27_163818_create_piggybanks_table.php@@ -42,6 +42,9 @@ class CreatePiggybanksTable extends Migration$table->enum('rep_length', ['day', 'week', 'quarter', 'month', 'year'])->nullable();$table->smallInteger('rep_every')->unsigned();$table->smallInteger('rep_times')->unsigned()->nullable();+ $table->enum('reminder', ['day', 'week', 'quarter', 'month', 'year'])->nullable();+ $table->smallInteger('reminder_skip')->unsigned();+ $table->boolean('remind_me');$table->integer('order')->unsigned();// connect account to piggy bank.diff --git a/database/migrations/2014_08_23_113221_create_reminders_table.php b/database/migrations/2014_08_23_113221_create_reminders_table.phpnew file mode 100644index 0000000000..aaecf27eb6--- /dev/null+++ b/database/migrations/2014_08_23_113221_create_reminders_table.php@@ -0,0 +1,50 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;++/**+ * @SuppressWarnings(PHPMD.ShortMethodName)+ *+ * Class CreateRemindersTable+ *+ */+class CreateRemindersTable extends Migration+{++ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ Schema::drop('reminders');+ }++ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {+ 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');+ }+ );+ }++}diff --git a/database/migrations/2015_02_27_210653_changes_for_v332.php b/database/migrations/2015_02_27_210653_changes_for_v332.phpindex 62caa2e67a..379b50a0c6 100644--- a/database/migrations/2015_02_27_210653_changes_for_v332.php+++ b/database/migrations/2015_02_27_210653_changes_for_v332.php@@ -35,6 +35,15 @@ class ChangesForV332 extends Migration});++ Schema::table(+ 'reminders', function (Blueprint $table) {+ $table->text('metadata')->nullable();++ }+ );++}}diff --git a/database/migrations/2015_03_29_174140_changes_for_v336.php b/database/migrations/2015_03_29_174140_changes_for_v336.phpindex 28352d4a8b..acaf6a384e 100644--- a/database/migrations/2015_03_29_174140_changes_for_v336.php+++ b/database/migrations/2015_03_29_174140_changes_for_v336.php@@ -226,6 +226,17 @@ class ChangesForV336 extends Migration});+ /**+ * REMINDERS+ */+ Schema::table(+ 'reminders', function (Blueprint $table) {+ $table->smallInteger('encrypted', false, true)->default(0);+++ }+ );+}}diff --git a/database/migrations/2015_06_23_050233_changes_for_v3451.php b/database/migrations/2015_06_23_050233_changes_for_v3451.phpnew file mode 100644index 0000000000..95706fa490--- /dev/null+++ b/database/migrations/2015_06_23_050233_changes_for_v3451.php@@ -0,0 +1,40 @@+<?php++use Illuminate\Database\Migrations\Migration;++/**+ * Class ChangesForV3451+ */+class ChangesForV3451 extends Migration+{+ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ DB::statement('UPDATE `piggy_banks` SET `reminder_skip` = 0 WHERE `reminder_skip` IS NULL;');+ DB::statement('ALTER TABLE `piggy_banks` MODIFY `reminder_skip` SMALLINT UNSIGNED NOT NULL;');++ DB::statement('UPDATE `piggy_banks` SET `remind_me` = 0 WHERE `remind_me` IS NULL;');+ DB::statement('ALTER TABLE `piggy_banks` MODIFY `remind_me` TINYINT UNSIGNED NOT NULL;');++ }++ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {++ DB::statement('ALTER TABLE `piggy_banks` MODIFY `reminder_skip` SMALLINT UNSIGNED NULL;');+ DB::statement('ALTER TABLE `piggy_banks` MODIFY `remind_me` TINYINT UNSIGNED NULL;');++ //'reminder_skip'+ //'remind_me'++ }+}