Main Tables Views Materialized Views Indexes Constraints Triggers Procedures Functions Packages Sequences Java Sources Jobs Sanity Check Index DDL scrips
Description Columns Primary key Check Constraints Foreign keys Unique Keys Options Indexes Referenced by Triggers Partitions

RHNCONFIGREVISION

DDL script

Columns

NameTypeNullableDefault valueComment
IDNUMBER(38)N  
REVISIONNUMBER(38)N  
CONFIG_FILE_IDNUMBER(38)N  
CONFIG_CONTENT_IDNUMBER(38)Y  
CONFIG_INFO_IDNUMBER(38)N  
CREATEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  
MODIFIEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  
CONFIG_FILE_TYPE_IDNUMBER(38)N(1)  
CHANGED_BY_IDNUMBER(38)Y(null)  

Primary key:

Constraint NameColumns
RHN_CONFREVISION_ID_PKID

Foreign Keys:

Constraint NameColumnsReferenced tableReferenced ConstraintOn Delete Rule
RHN_CONFREVISION_CCID_FKCONFIG_CONTENT_ID RHNCONFIGCONTENT RHN_CONFCONTENT_ID_PK NO ACTION
RHN_CONFREVISION_CFID_FKCONFIG_FILE_ID RHNCONFIGFILE RHN_CONFFILE_ID_PK NO ACTION
RHN_CONFREVISION_CID_FKCHANGED_BY_ID WEB_CONTACT WEB_CONTACT_PK NO ACTION
RHN_CONFREVISION_CIID_FKCONFIG_INFO_ID RHNCONFIGINFO RHN_CONFINFO_ID_PK NO ACTION
RHN_CONF_REV_CFTI_FKCONFIG_FILE_TYPE_ID RHNCONFIGFILETYPE RHN_CONFFILETYPE_ID_PK NO ACTION

Options:

OptionSettings
TablespaceUSERS
Index OrganizedNo
Generated by OracleNo
ClusteredNo
NestedNo
TemporaryNo

Indexes:

Index NameTypeUnuquenessColumnsDDL script
RHN_CONFREVISION_CCID_IDXNORMALNONUNIQUECONFIG_CONTENT_ID DDL script
RHN_CONFREVISION_CFID_REV_UQNORMALUNIQUECONFIG_FILE_ID , REVISION DDL script
RHN_CONFREVISION_ID_PKNORMALUNIQUEID DDL script

Referenced by:

TableConstraint
RHNACTIONCONFIGFILENAME RHN_ACTIONCF_NAME_CRID_FK
RHNACTIONCONFIGREVISION RHN_ACTIONCR_CRID_FK
RHNCONFIGFILE RHN_CONFFILE_LCRID_FK
RHNSNAPSHOTCONFIGREVISION RHN_SNAPSHOTCR_CRID_FK

Triggers

RHN_CONFREVISION_DEL_TRIG

Legend: comment string keyword reserved word operator
CREATE TRIGGER 
rhn_confrevision_del_trig
before delete on rhnConfigRevision
for each row

REFERENCING NEW AS NEW OLD AS OLD
declare
        cr_removed number := lookup_snapshot_invalid_reason('cr_removed');
begin
        update rhnSnapshot
           set invalid = cr_removed
         where id in (select snapshot_id
                        from rhnSnapshotConfigRevision
                       where config_revision_id = :old.id);
        delete from rhnSnapshotConfigRevision
         where config_revision_id = :old.id;
end;

RHN_CONFREVISION_MOD_TRIG

Legend: comment string keyword reserved word operator
CREATE TRIGGER 
rhn_confrevision_mod_trig
before insert or update on rhnConfigRevision
for each row

REFERENCING NEW AS NEW OLD AS OLD
begin
	:new.modified := current_timestamp;
end;