From d58d43a847cbf3d138954602cee73e50cb9fa2b7 Mon Sep 17 00:00:00 2001 From: Allan Tatter Date: Thu, 28 Mar 2024 10:16:55 +0200 Subject: [PATCH] unsignedDecimal data type was deleted from Laravel --- .../2024_02_05_000010_create_openai_requests_table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2024_02_05_000010_create_openai_requests_table.php b/database/migrations/2024_02_05_000010_create_openai_requests_table.php index 05e7604..517ba7f 100644 --- a/database/migrations/2024_02_05_000010_create_openai_requests_table.php +++ b/database/migrations/2024_02_05_000010_create_openai_requests_table.php @@ -16,8 +16,8 @@ public function up(): void $table->string('method')->nullable()->index(); $table->string('status')->index(); - $table->unsignedDecimal('cost', 16, 8)->nullable(); - $table->unsignedDecimal('time_sec', 10, 4)->nullable(); + $table->decimal('cost', 16, 8)->nullable(); + $table->decimal('time_sec', 10, 4)->nullable(); $table->string('model_requested')->nullable(); $table->string('model_used')->nullable(); $table->jsonb('input')->nullable();