mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
sql: add unique index to prevent double inserts
This commit is contained in:
parent
8904272d28
commit
9cff83ff49
1 changed files with 5 additions and 0 deletions
5
sql/2017-03-31-earnings_index.sql
Normal file
5
sql/2017-03-31-earnings_index.sql
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
-- Recent additions to add after db init (.gz)
|
||||||
|
-- mysql yaamp -p < file.sql
|
||||||
|
|
||||||
|
ALTER TABLE `earnings` ADD UNIQUE INDEX `ndx_user_block`(`userid`, `blockid`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue