fix: add unique constraint to split and dividends
to prevent duplicate records
This commit is contained in:
@@ -21,6 +21,8 @@ class CreateSplitsTable extends Migration
|
||||
$table->string('symbol', 25);
|
||||
$table->float('split_amount', 12, 4);
|
||||
$table->timestamps();
|
||||
|
||||
$table->unique(['date', 'symbol']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user