Files for new reelase.

This commit is contained in:
James Cole
2021-03-27 20:01:28 +01:00
parent 922050a79b
commit adfdcdb9c6
53 changed files with 225 additions and 161 deletions

View File

@@ -98,7 +98,7 @@ class CreateMainTables extends Migration
$table->integer('user_id', false, true);
$table->integer('account_type_id', false, true);
$table->string('name', 1024);
$table->decimal('virtual_balance', 22, 12)->nullable();
$table->decimal('virtual_balance', 36, 24)->nullable();
$table->string('iban', 255)->nullable();
$table->boolean('active')->default(1);
$table->boolean('encrypted')->default(0);
@@ -134,7 +134,7 @@ class CreateMainTables extends Migration
$table->softDeletes();
$table->integer('account_id', false, true);
$table->string('name', 1024);
$table->decimal('targetamount', 22, 12);
$table->decimal('targetamount', 36, 24);
$table->date('startdate')->nullable();
$table->date('targetdate')->nullable();
$table->integer('order', false, true)->default(0);
@@ -154,7 +154,7 @@ class CreateMainTables extends Migration
$table->integer('piggy_bank_id', false, true);
$table->date('startdate')->nullable();
$table->date('targetdate')->nullable();
$table->decimal('currentamount', 22, 12);
$table->decimal('currentamount', 36, 24);
$table->foreign('piggy_bank_id')->references('id')->on('piggy_banks')->onDelete('cascade');
}
);
@@ -201,8 +201,8 @@ class CreateMainTables extends Migration
$table->integer('user_id', false, true);
$table->string('name', 1024);
$table->string('match', 1024);
$table->decimal('amount_min', 22, 12);
$table->decimal('amount_max', 22, 12);
$table->decimal('amount_min', 36, 24);
$table->decimal('amount_max', 36, 24);
$table->date('date');
$table->string('repeat_freq', 30);
$table->smallInteger('skip', false, true)->default(0);
@@ -246,7 +246,7 @@ class CreateMainTables extends Migration
$table->timestamps();
$table->integer('budget_id', false, true);
$table->date('startdate');
$table->decimal('amount', 22, 12);
$table->decimal('amount', 36, 24);
$table->string('repeat_freq', 30);
$table->boolean('repeats')->default(0);
$table->foreign('budget_id')->references('id')->on('budgets')->onDelete('cascade');
@@ -262,7 +262,7 @@ class CreateMainTables extends Migration
$table->integer('budget_limit_id', false, true);
$table->date('startdate');
$table->date('enddate');
$table->decimal('amount', 22, 12);
$table->decimal('amount', 36, 24);
$table->foreign('budget_limit_id')->references('id')->on('budget_limits')->onDelete('cascade');
}
);
@@ -462,8 +462,8 @@ class CreateMainTables extends Migration
$table->string('tagMode', 1024);
$table->date('date')->nullable();
$table->text('description')->nullable();
$table->decimal('latitude', 24, 12)->nullable();
$table->decimal('longitude', 24, 12)->nullable();
$table->decimal('latitude', 36, 24)->nullable();
$table->decimal('longitude', 36, 24)->nullable();
$table->smallInteger('zoomLevel', false, true)->nullable();
// link user id to users table
@@ -574,7 +574,7 @@ class CreateMainTables extends Migration
$table->integer('piggy_bank_id', false, true);
$table->integer('transaction_journal_id', false, true)->nullable();
$table->date('date');
$table->decimal('amount', 22, 12);
$table->decimal('amount', 36, 24);
$table->foreign('piggy_bank_id')->references('id')->on('piggy_banks')->onDelete('cascade');
$table->foreign('transaction_journal_id')->references('id')->on('transaction_journals')->onDelete('set null');
@@ -592,7 +592,7 @@ class CreateMainTables extends Migration
$table->integer('account_id', false, true);
$table->integer('transaction_journal_id', false, true);
$table->string('description', 1024)->nullable();
$table->decimal('amount', 22, 12);
$table->decimal('amount', 36, 24);
$table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');
$table->foreign('transaction_journal_id')->references('id')->on('transaction_journals')->onDelete('cascade');

View File

@@ -53,7 +53,7 @@ class ChangesForV430 extends Migration
$table->softDeletes();
$table->integer('user_id', false, true);
$table->integer('transaction_currency_id', false, true);
$table->decimal('amount', 22, 12);
$table->decimal('amount', 36, 24);
$table->date('start_date');
$table->date('end_date');

View File

@@ -71,8 +71,8 @@ class ChangesForV440 extends Migration
$table->integer('from_currency_id', false, true);
$table->integer('to_currency_id', false, true);
$table->date('date');
$table->decimal('rate', 22, 12);
$table->decimal('user_rate', 22, 12)->nullable();
$table->decimal('rate', 36, 24);
$table->decimal('user_rate', 36, 24)->nullable();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
$table->foreign('from_currency_id')->references('id')->on('transaction_currencies')->onDelete('cascade');

View File

@@ -72,7 +72,7 @@ class ChangesForV450 extends Migration
Schema::table(
'transactions',
static function (Blueprint $table) {
$table->decimal('foreign_amount', 22, 12)->nullable()->after('amount');
$table->decimal('foreign_amount', 36, 24)->nullable()->after('amount');
}
);

View File

@@ -90,8 +90,8 @@ class ChangesForV475 extends Migration
$table->integer('source_id', false, true);
$table->integer('destination_id', false, true);
$table->decimal('amount', 22, 12);
$table->decimal('foreign_amount', 22, 12)->nullable();
$table->decimal('amount', 36, 24);
$table->decimal('foreign_amount', 36, 24)->nullable();
$table->string('description', 1024);
$table->foreign('recurrence_id')->references('id')->on('recurrences')->onDelete('cascade');

View File

@@ -59,8 +59,8 @@ class MakeLocationsTable extends Migration
$table->integer('locatable_id', false, true);
$table->string('locatable_type', 255);
$table->decimal('latitude', 24, 12)->nullable();
$table->decimal('longitude', 24, 12)->nullable();
$table->decimal('latitude', 36, 24)->nullable();
$table->decimal('longitude', 36, 24)->nullable();
$table->smallInteger('zoom_level', false, true)->nullable();
}
);

View File

@@ -61,7 +61,7 @@ class ChangesForV520 extends Migration
$table->integer('budget_id', false, true);
$table->integer('transaction_currency_id', false, true);
$table->tinyInteger('auto_budget_type', false, true)->default(1);
$table->decimal('amount', 22, 12);
$table->decimal('amount', 36, 24);
$table->string('period', 50);
$table->foreign('transaction_currency_id')->references('id')->on('transaction_currencies')->onDelete('cascade');