RHNCHANNELCLONED
DDL scriptColumns
| Name | Type | Nullable | Default value | Comment |
|---|
| ORIGINAL_ID | NUMBER(38) | N | | |
| ID | NUMBER(38) | N | | |
| CREATED | DATE | N | (sysdate) | |
| MODIFIED | DATE | N | (sysdate) | |
Primary key:
| Constraint Name | Columns |
|---|
| RHN_CHANNELCLONE_ID_PK | ID
|
Foreign Keys:

Unique Keys:
| Constraint name | Columns |
|---|
| RHN_CHANNELCLONE_FCID_TCID_UQ | ORIGINAL_ID
, ID
|
Options:
| Option | Settings |
|---|
| Tablespace | DATA_TBS |
| Index Organized | No |
| Generated by Oracle | No |
| Clustered | No |
| Nested | No |
| Temporary | No |
Indexes:
Triggers
RHN_CHANNELCLONE_MOD_TRIG
Legend: string keyword reserved word operator
CREATE TRIGGER
rhn_channelclone_mod_trig
before insert or update on rhnChannelCloned
for each row
REFERENCING NEW AS NEW OLD AS OLD
begin
:new.modified := sysdate;
end;
RHN_CHANNEL_CLONED_COMPS_TRIG
Legend: string keyword reserved word operator
CREATE TRIGGER
rhn_channel_cloned_comps_trig
before insert on rhnChannelCloned
for each row
REFERENCING NEW AS NEW OLD AS OLD
begin
insert into rhnChannelComps
( id, channel_id, relative_filename,
last_modified, created, modified )
select rhn_channelcomps_id_seq.nextval, :new.id, relative_filename,
sysdate, sysdate, sysdate
from rhnChannelComps
where channel_id = :new.original_id
and not exists (
select 1
from rhnChannelComps x
where x.channel_id = :new.id
);
end;