Skip to content

Commit

Permalink
fix migration wrong integer size 🦎
Browse files Browse the repository at this point in the history
  • Loading branch information
inikoo committed Jun 12, 2024
1 parent ad00ee4 commit d6f9b50
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ public function up(): void
Schema::create('dropshipping_customer_portfolio_stats', function (Blueprint $table) {
$table->id();

$table->unsignedSmallInteger('dropshipping_customer_portfolio_id')->index();
$table->unsignedInteger('dropshipping_customer_portfolio_id')->index();
$table->foreign('dropshipping_customer_portfolio_id')->references('id')->on('dropshipping_customer_portfolios');

$table->unsignedSmallInteger('amount')->default(0);
$table->unsignedSmallInteger('number_orders')->default(0);
$table->unsignedSmallInteger('number_ordered_quantity')->default(0);
$table->unsignedSmallInteger('number_clients')->default(0);

$table->unsignedSmallInteger('removed_at')->nullable();
$table->unsignedSmallInteger('last_ordered_at')->nullable();

$table->timestampsTz();
});
}
Expand Down

0 comments on commit d6f9b50

Please sign in to comment.