Cast fields to string and drop unused table.

This commit is contained in:
James Cole
2024-11-15 19:13:37 +01:00
parent ec89a2f956
commit 60f6a91fe4
12 changed files with 17 additions and 19 deletions

View File

@@ -294,25 +294,6 @@ class CreateMainTables extends Migration
app('log')->error(self::TABLE_ALREADY_EXISTS);
}
}
if (!Schema::hasTable('limit_repetitions')) {
try {
Schema::create(
'limit_repetitions',
static function (Blueprint $table): void {
$table->increments('id');
$table->timestamps();
$table->integer('budget_limit_id', false, true);
$table->date('startdate');
$table->date('enddate');
$table->decimal('amount', 32, 12);
$table->foreign('budget_limit_id')->references('id')->on('budget_limits')->onDelete('cascade');
}
);
} catch (QueryException $e) {
app('log')->error(sprintf(self::TABLE_ERROR, 'limit_repetitions', $e->getMessage()));
app('log')->error(self::TABLE_ALREADY_EXISTS);
}
}
}
private function createCategoriesTable(): void