45 |
|
alter table t_block_status |
46 |
|
add constraint pk_block_status |
47 |
|
primary key (id) |
48 |
< |
using index tablespace CMS_DBS_INDX01; |
48 |
> |
using index tablespace INDX01; |
49 |
|
|
50 |
|
alter table t_block_status |
51 |
|
add constraint uq_block_status_key |
55 |
|
alter table t_block |
56 |
|
add constraint pk_block |
57 |
|
primary key (id) |
58 |
< |
using index tablespace CMS_DBS_INDX01; |
58 |
> |
using index tablespace INDX01; |
59 |
|
|
60 |
|
alter table t_block |
61 |
|
add constraint fk_block_status |
62 |
|
foreign key (status) references t_block_status (id); |
63 |
|
|
64 |
+ |
alter table t_block |
65 |
+ |
add constraint fk_processed_dataset |
66 |
+ |
foreign key (processed_dataset) references t_processed_dataset (id); |
67 |
+ |
|
68 |
|
-- |
69 |
|
alter table t_file_status |
70 |
|
add constraint pk_file_status |
71 |
|
primary key (id) |
72 |
< |
using index tablespace CMS_DBS_INDX01; |
72 |
> |
using index tablespace INDX01; |
73 |
|
|
74 |
|
alter table t_file_status |
75 |
|
add constraint uq_file_status_key |
79 |
|
alter table t_file_type |
80 |
|
add constraint pk_file_type |
81 |
|
primary key (id) |
82 |
< |
using index tablespace CMS_DBS_INDX01; |
82 |
> |
using index tablespace INDX01; |
83 |
|
|
84 |
|
alter table t_file_type |
85 |
|
add constraint uq_file_type |
89 |
|
alter table t_file |
90 |
|
add constraint pk_file |
91 |
|
primary key (id) |
92 |
< |
using index tablespace CMS_DBS_INDX01; |
92 |
> |
using index tablespace INDX01; |
93 |
|
|
94 |
|
alter table t_file |
95 |
|
add constraint uq_file_lfn |
111 |
|
alter table t_evcoll_file |
112 |
|
add constraint pk_evcoll_file |
113 |
|
primary key (id) |
114 |
< |
using index tablespace CMS_DBS_INDX01; |
114 |
> |
using index tablespace INDX01; |
115 |
|
|
116 |
|
alter table t_evcoll_file |
117 |
|
add constraint uq_evcoll_file_key |
129 |
|
-- ====================================================================== |
130 |
|
create index ix_block_status |
131 |
|
on t_block (status) |
132 |
< |
tablespace CMS_DBS_INDX01; |
132 |
> |
tablespace INDX01; |
133 |
|
|
134 |
|
-- |
135 |
|
create index ix_file_status |
136 |
|
on t_file (status) |
137 |
< |
tablespace CMS_DBS_INDX01; |
137 |
> |
tablespace INDX01; |
138 |
|
|
139 |
|
create index ix_file_type |
140 |
|
on t_file (type) |
141 |
< |
tablespace CMS_DBS_INDX01; |
141 |
> |
tablespace INDX01; |
142 |
|
|
143 |
|
create index ix_file_inblock |
144 |
|
on t_file (inblock) |
145 |
< |
tablespace CMS_DBS_INDX01; |
145 |
> |
tablespace INDX01; |