diff options
Diffstat (limited to 'sql/dawn.sql')
| -rw-r--r-- | sql/dawn.sql | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/dawn.sql b/sql/dawn.sql index 6632f9db..678db4e4 100644 --- a/sql/dawn.sql +++ b/sql/dawn.sql @@ -116,8 +116,11 @@ CREATE TABLE cds(id serial primary key, isda_definition isda, termination_date date DEFAULT NULL, termination_amount float DEFAULT NULL, + initial_margin_percentage float DEFAULT NULL, CONSTRAINT tranche_check CHECK (swap_type != 'CD_INDEX_TRANCHE' OR - (attach IS NOT NULL AND detach IS NOT NULL))); + (attach IS NOT NULL AND detach IS NOT NULL AND + clearing_facility IS NULL)) + ); ALTER TABLE cds OWNER TO dawn_user; |
