diff --git a/database/migrations/2023_09_29_123805_create_shopee_seller_scrapes_table.php b/database/migrations/2023_09_29_123805_create_shopee_seller_scrapes_table.php index 0360de2..007b5ba 100644 --- a/database/migrations/2023_09_29_123805_create_shopee_seller_scrapes_table.php +++ b/database/migrations/2023_09_29_123805_create_shopee_seller_scrapes_table.php @@ -21,7 +21,7 @@ public function up(): void $table->timestamp('last_ai_written_at'); $table->integer('write_counts')->default(0); $table->timestamps(); - $table->foreign('category')->references('id')->on('categories'); + $table->foreign('category_id')->references('id')->on('categories'); }); }