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.7 by lat, Wed Oct 19 12:54:56 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
7   create table t_app_family
8    (id                           integer         not null,
9     name                         varchar (1000)  not null);
# Line 17 | Line 12 | 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,
21 <   input_type                   integer         /* not null */,
22 <   output_type                  integer         /* not null */);
15 >   app_family                   integer         not null);
16  
17   create table t_app_config
18    (id                           integer         not null,
19     application                  integer         not null,
20 <   parameter_set                varchar (1000)  not null,  -- FIXME!
28 <   conditions_version           varchar (1000)  /* not null */);
20 >   parameter_set                varchar (1000)  not null);
21  
22   -- ======================================================================
31 alter table t_collection_type
32  add constraint pk_collection_type
33  primary key (id)
34  using index tablespace CMS_DBS_INDX01;
35
36 alter table t_collection_type
37  add constraint uq_collection_type_name
38  unique (name);
39
40 --
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
# Line 51 | Line 33 | alter table t_app_family
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 61 | Line 43 | alter table t_application
43    add constraint fk_app_family
44    foreign key (app_family) references t_app_family (id);
45  
64 alter table t_application
65  add constraint fk_application_intype
66  foreign key (input_type) references t_collection_type (id);
67
68 alter table t_application
69  add constraint fk_application_outtype
70  foreign key (output_type) references t_collection_type (id);
71
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, parameter_set, 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);
85
86 -- ======================================================================
87 create index ix_application_intype
88  on t_application (input_type)
89  tablespace CMS_DBS_INDX01;
90
91 create index ix_application_outtype
92  on t_application (output_type)
93  tablespace CMS_DBS_INDX01;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines