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

RHNKICKSTARTABLETREE

DDL script

Columns

NameTypeNullableDefault valueComment
IDNUMBER(38)N  
ORG_IDNUMBER(38)Y  
LABELVARCHAR2(64)N  
BASE_PATHVARCHAR2(256)N  
CHANNEL_IDNUMBER(38)N  
COBBLER_IDVARCHAR2(64)Y  
COBBLER_XEN_IDVARCHAR2(64)Y  
BOOT_IMAGEVARCHAR2(128)Y('spacewalk-koan') 
KSTREE_TYPENUMBER(38)N  
INSTALL_TYPENUMBER(38)N  
KERNEL_OPTIONSVARCHAR2(256)Y  
KERNEL_OPTIONS_POSTVARCHAR2(256)Y  
LAST_MODIFIEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  
CREATEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  
MODIFIEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  

Primary key:

Constraint NameColumns
RHN_KSTREE_ID_PKID

Foreign Keys:

Constraint NameColumnsReferenced tableReferenced ConstraintOn Delete Rule
RHN_KSTREE_CID_FKCHANNEL_ID RHNCHANNEL RHN_CHANNEL_ID_PK CASCADE
RHN_KSTREE_IT_FKINSTALL_TYPE RHNKSINSTALLTYPE RHN_KSINSTALLTYPE_ID_PK NO ACTION
RHN_KSTREE_KSTREETYPE_FKKSTREE_TYPE RHNKSTREETYPE RHN_KSTREETYPE_ID_PK NO ACTION
RHN_KSTREE_OID_FKORG_ID WEB_CUSTOMER WEB_CUSTOMER_ID_PK CASCADE

Options:

OptionSettings
TablespaceUSERS
Index OrganizedNo
Generated by OracleNo
ClusteredNo
NestedNo
TemporaryNo

Indexes:

Index NameTypeUnuquenessColumnsDDL script
RHN_KSTREE_ID_PKNORMALUNIQUEID DDL script
RHN_KSTREE_OID_LABEL_UQNORMALUNIQUEORG_ID , LABEL DDL script

Referenced by:

TableConstraint
RHNKICKSTARTDEFAULTS RHN_KSD_KSTID_FK
RHNKSTREEFILE RHN_KSTREEFILE_KID_FK
RHNKICKSTARTSESSION RHN_KS_SESSION_KSTID_FK

Triggers

RHN_KSTREE_MOD_TRIG

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

REFERENCING NEW AS NEW OLD AS OLD
begin
     -- Basically if we're changing something other than cobbler_id,
     -- cobbler_xen_id, and last_modified - or if last_modified is
     -- explicity set to null. Gets complicated because we have
     -- to allow for the possibility of the ids being null
     if ((not :old.cobbler_id is null and :new.cobbler_id = :old.cobbler_id) or
            (:old.cobbler_id is null and :new.cobbler_id is null)) and
        ((not :old.cobbler_xen_id is null and :new.cobbler_xen_id = :old.cobbler_xen_id) or
            (:old.cobbler_xen_id is null and :new.cobbler_xen_id is null)) and
        (:new.last_modified = :old.last_modified) or
        (:new.last_modified is null ) then
             :new.last_modified := current_timestamp;
     end if;

	:new.modified := current_timestamp;
end rhn_kstree_mod_trig;