aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sql/dawn.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/dawn.sql b/sql/dawn.sql
index 46a6ff11..e09afbba 100644
--- a/sql/dawn.sql
+++ b/sql/dawn.sql
@@ -2401,7 +2401,7 @@ CREATE TABLE strategy_im(
amount float NOT NULL,
currency currency NOT NULL,
fund fund NOT NULL,
- PRIMARY KEY (date, strategy, broker, fund)
+ PRIMARY KEY (date, fund, broker, strategy, currency)
)
CREATE TYPE cash_rate AS ENUM('FED_FUND', '1M_LIBOR', '3M_LIBOR');