fix: add unique constraint to split and dividends

to prevent duplicate records
This commit is contained in:
hackerESQ
2025-03-19 16:16:38 -05:00
parent 9bcc80078e
commit 261c848ffd
5 changed files with 15 additions and 18 deletions
@@ -21,6 +21,8 @@ class CreateSplitsTable extends Migration
$table->string('symbol', 25);
$table->float('split_amount', 12, 4);
$table->timestamps();
$table->unique(['date', 'symbol']);
});
}