@@ -199,6 +199,37 @@ Furthermore the composite primary key is used to assure, that measurements, samp
...
@@ -199,6 +199,37 @@ Furthermore the composite primary key is used to assure, that measurements, samp
To allow the compartment to be included twice as foreign key referencing once the compartments table directly and once the compartment as foreign key referencing e.g. the sampling sites compartment from the samples table, so called "generated columns" are used to fill the additional columns and check constraints to assure, that the compartment information matches.
To allow the compartment to be included twice as foreign key referencing once the compartments table directly and once the compartment as foreign key referencing e.g. the sampling sites compartment from the samples table, so called "generated columns" are used to fill the additional columns and check constraints to assure, that the compartment information matches.
## Steps to set up the database from DDL scripts
- [ ] Export the DDL script from ERMaster
- [ ] Perform "Search and replace" for 'SESSION_USER' by SESSION_USER in the DDL script to make this default value a variable instead of the test string.
- [ ] Add table partitioning if you expect the tables to become big. Find the table creation statements in the DDL script and append them as follows: