ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/DBS/Schema/RefDBLegacy/OracleApps.sql
(Generate patch)

Comparing COMP/DBS/Schema/RefDBLegacy/OracleApps.sql (file contents):
Revision 1.5 by lat, Tue Oct 11 17:39:45 2005 UTC vs.
Revision 1.8 by lat, Fri Jan 20 11:53:17 2006 UTC

# Line 1 | Line 1
1   -- ======================================================================
2 create sequence seq_collection_type;
2   create sequence seq_app_family;
3   create sequence seq_application;
4   create sequence seq_app_config;
5  
6   -- ======================================================================
8 create table t_collection_type
9  (id                           integer         not null,
10   name                         varchar (1000)  not null,
11   created_at                   float           not null,
12   created_by                   integer         not null,
13   modified_at                  float,
14   modified_by                  integer);
15
7   create table t_app_family
8    (id                           integer         not null,
9 <   name                         varchar (1000)  not null,
19 <   created_at                   float           not null,
20 <   created_by                   integer         not null,
21 <   modified_at                  float,
22 <   modified_by                  integer);
9 >   name                         varchar (1000)  not null);
10  
11   create table t_application
12    (id                           integer         not null,
13     executable                   varchar (1000)  not null,
14     app_version                  varchar (1000)  not null,
15 <   app_family                   integer         not null,
29 <   input_type                   integer         not null,
30 <   output_type                  integer         not null,
31 <   created_at                   float           not null,
32 <   created_by                   integer         not null,
33 <   modified_at                  float,
34 <   modified_by                  integer);
15 >   app_family                   integer         not null);
16  
17   create table t_app_config
18    (id                           integer         not null,
19     application                  integer         not null,
20 <   conditions_version           varchar (1000)  not null,
40 <   created_at                   float           not null,
41 <   created_by                   integer         not null,
42 <   modified_at                  float,
43 <   modified_by                  integer);
20 >   parameter_set                varchar (1000)  not null);
21  
22   -- ======================================================================
46 alter table t_collection_type
47  add constraint pk_collection_type
48  primary key (id)
49  using index tablespace CMS_DBS_INDX01;
50
51 alter table t_collection_type
52  add constraint uq_collection_type_name
53  unique (name);
54
55 alter table t_collection_type
56  add constraint fk_collection_type_creatby
57  foreign key (created_by) references t_person (id);
58
59 alter table t_collection_type
60  add constraint fk_collection_type_modifby
61  foreign key (modified_by) references t_person (id);
62
63 --
23   alter table t_app_family
24    add constraint pk_app_family
25    primary key (id)
26 <  using index tablespace CMS_DBS_INDX01;
26 >  using index tablespace INDX01;
27  
28   alter table t_app_family
29    add constraint uq_app_family_name
30    unique (name);
31  
73 alter table t_app_family
74  add constraint fk_app_family_creatby
75  foreign key (created_by) references t_person (id);
76
77 alter table t_app_family
78  add constraint fk_app_family_modifby
79  foreign key (modified_by) references t_person (id);
80
32   --
33   alter table t_application
34    add constraint pk_application
35    primary key (id)
36 <  using index tablespace CMS_DBS_INDX01;
36 >  using index tablespace INDX01;
37  
38   alter table t_application
39    add constraint uq_application_key
# Line 92 | Line 43 | alter table t_application
43    add constraint fk_app_family
44    foreign key (app_family) references t_app_family (id);
45  
95 alter table t_application
96  add constraint fk_application_intype
97  foreign key (input_type) references t_collection_type (id);
98
99 alter table t_application
100  add constraint fk_application_outtype
101  foreign key (output_type) references t_collection_type (id);
102
103 alter table t_application
104  add constraint fk_application_creatby
105  foreign key (created_by) references t_person (id);
106
107 alter table t_application
108  add constraint fk_application_modifby
109  foreign key (modified_by) references t_person (id);
110
46   --
47   alter table t_app_config
48    add constraint pk_app_config
49    primary key (id)
50 <  using index tablespace CMS_DBS_INDX01;
50 >  using index tablespace INDX01;
51  
52   alter table t_app_config
53    add constraint uq_app_config
54 <  unique (application, conditions_version);
54 >  unique (application, parameter_set);
55  
56   alter table t_app_config
57    add constraint fk_app_config_app
58    foreign key (application) references t_application (id);
124
125 alter table t_app_config
126  add constraint fk_app_config_creatby
127  foreign key (created_by) references t_person (id);
128
129 alter table t_app_config
130  add constraint fk_app_config_modifby
131  foreign key (modified_by) references t_person (id);
132
133 -- ======================================================================
134 create index ix_collection_type_creatby
135  on t_collection_type (created_by)
136  tablespace CMS_DBS_INDX01;
137
138 create index ix_collection_type_modifby
139  on t_collection_type (modified_by)
140  tablespace CMS_DBS_INDX01;
141
142 --
143 create index ix_app_family_creatby
144  on t_app_family (created_by)
145  tablespace CMS_DBS_INDX01;
146
147 create index ix_app_family_modifby
148  on t_app_family (modified_by)
149  tablespace CMS_DBS_INDX01;
150
151 --
152 create index ix_application_intype
153  on t_application (input_type)
154  tablespace CMS_DBS_INDX01;
155
156 create index ix_application_outtype
157  on t_application (output_type)
158  tablespace CMS_DBS_INDX01;
159
160 create index ix_application_creatby
161  on t_application (created_by)
162  tablespace CMS_DBS_INDX01;
163
164 create index ix_application_modifby
165  on t_application (modified_by)
166  tablespace CMS_DBS_INDX01;
167
168 --
169 create index ix_app_config_creatby
170  on t_app_config (created_by)
171  tablespace CMS_DBS_INDX01;
172
173 create index ix_app_config_modifby
174  on t_app_config (modified_by)
175  tablespace CMS_DBS_INDX01;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines