1 | <?xml version="1.0" encoding="UTF-8" ?> |
---|
2 | <!DOCTYPE predefined-queries SYSTEM "predefined-queries.dtd" > |
---|
3 | <!-- |
---|
4 | $Id: mysql-queries.xml 7121 2016-04-19 06:56:43Z nicklas $ |
---|
5 | |
---|
6 | Copyright (C) 2006 Nicklas Nordborg |
---|
7 | |
---|
8 | This file is part of BASE - BioArray Software Environment. |
---|
9 | Available at http://base.thep.lu.se/ |
---|
10 | |
---|
11 | BASE is free software; you can redistribute it and/or |
---|
12 | modify it under the terms of the GNU General Public License |
---|
13 | as published by the Free Software Foundation; either version 3 |
---|
14 | of the License, or (at your option) any later version. |
---|
15 | |
---|
16 | BASE is distributed in the hope that it will be useful, |
---|
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
19 | GNU General Public License for more details. |
---|
20 | |
---|
21 | You should have received a copy of the GNU General Public License |
---|
22 | along with BASE. If not, see <http://www.gnu.org/licenses/>. |
---|
23 | --> |
---|
24 | <!-- |
---|
25 | This file contains HQL and SQL queries that have been modified |
---|
26 | specifically for the MySQL database and overrides the queries |
---|
27 | found in the common-queries.xml file. |
---|
28 | --> |
---|
29 | <predefined-queries> |
---|
30 | <query id="DROP_NOT_NULL_CONSTRAINT" type="SQL"> |
---|
31 | <sql> |
---|
32 | ALTER TABLE [{1}] MODIFY [{2}] {3} NULL |
---|
33 | </sql> |
---|
34 | <description> |
---|
35 | An SQL query that drops a NOT NULL contraint from column (2) with data type (3) |
---|
36 | in a table (1). |
---|
37 | </description> |
---|
38 | </query> |
---|
39 | |
---|
40 | <query id="AB_INSERT_INTO_ANNOTATIONS" type="SQL"> |
---|
41 | <sql> |
---|
42 | INSERT INTO [Annotations] ([version], [annotationset_id], [annotationtype_id], [unit_id], [value_id], [last_update], [source]) |
---|
43 | VALUES (0, ?, ?, ?, ?, ?, 0) |
---|
44 | </sql> |
---|
45 | <description> |
---|
46 | SQL query for inserting rows into the Annotations table. |
---|
47 | The primary key (id) must be auto-generated. |
---|
48 | Parameters: annotationset_id, annotationtype_id, unit_id, value_id, last_updated |
---|
49 | </description> |
---|
50 | </query> |
---|
51 | |
---|
52 | <query id="AB_INSERT_INTO_ANNOTATIONSETS" type="SQL"> |
---|
53 | <sql> |
---|
54 | INSERT INTO [AnnotationSets] ([version], [item_type], [item_id]) |
---|
55 | VALUES (0, {1}, ?) |
---|
56 | </sql> |
---|
57 | <description> |
---|
58 | SQL query for inserting rows into the AnnotationSets table. |
---|
59 | The primary key (id) must be auto-generated. |
---|
60 | Parameters: item_id |
---|
61 | </description> |
---|
62 | </query> |
---|
63 | |
---|
64 | |
---|
65 | |
---|
66 | </predefined-queries> |
---|