Skip to content

Commit

Permalink
Update 2024_02_20_223331_create_wallet_transactions_table.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ronappleton committed May 31, 2024
1 parent 223bf93 commit 43a4650
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ function (Blueprint $table) {

$table->timestamps();

$table->foreign('wallet_id')->references('id')->on('wallets');
Config::bool('wallet.use_uuids', false)
? $table->foreignUuid('wallet_id')->references('id')->on('wallets')
: $table->foreign('wallet_id')->references('id')->on('wallets');

$table->index('type');
$table->index(['wallet_id', 'amount']);
Expand Down

0 comments on commit 43a4650

Please sign in to comment.