| Constraint Name | Columns |
|---|---|
| RHN_ERRATA_ID_PK | ID |
| Constraint Name | Check Condition |
|---|---|
| RHN_ERRATA_ADV_TYPE_CK | advisory_type in ('Bug Fix Advisory', 'Product Enhancement Advisory', 'Security Advisory') |
| RHN_ERRATA_LM_CK | locally_modified in ('Y','N') |
| Constraint Name | Columns | Referenced table | Referenced Constraint | On Delete Rule |
|---|---|---|---|---|
| RHN_ERRATA_OID_FK | ORG_ID | WEB_CUSTOMER | WEB_CUSTOMER_ID_PK | CASCADE |
| RHN_ERRATA_SEVID_FK | SEVERITY_ID | RHNERRATASEVERITY | RHN_ERRATA_SEV_ID_PK | NO ACTION |

| Option | Settings |
|---|---|
| Tablespace | DATA_TBS |
| Index Organized | No |
| Generated by Oracle | No |
| Clustered | No |
| Nested | No |
| Temporary | No |
| Index Name | Type | Unuqueness | Columns | DDL script |
|---|---|---|---|---|
| RHN_ERRATA_ADVISORY_NAME_UQ | NORMAL | UNIQUE | ADVISORY_NAME | DDL script |
| RHN_ERRATA_ADVISORY_UQ | NORMAL | UNIQUE | ADVISORY | DDL script |
| RHN_ERRATA_ID_PK | NORMAL | UNIQUE | ID | DDL script |
Legend: comment string keyword reserved word operator
CREATE TRIGGER rhn_errata_mod_trig before insert or update on rhnErrata for each row REFERENCING NEW AS NEW OLD AS OLD begin if ( :new.last_modified = :old.last_modified ) or ( :new.last_modified is null ) then :new.last_modified := sysdate; end if; :new.modified := sysdate; end rhn_errata_mod_trig;