source: trunk/config/dist/mysql-queries.xml @ 7135

Last change on this file since 7135 was 7135, checked in by Nicklas Nordborg, 6 years ago

References #2000: Batch API for annotation handling

Added a missing SQL command to mysql-queries.xml.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Date Id
File size: 2.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8" ?>
2<!DOCTYPE predefined-queries SYSTEM "predefined-queries.dtd" >
3<!--
4  $Id: mysql-queries.xml 7135 2016-04-21 12:57:45Z 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_PARAMETERVALUES" type="SQL">
41    <sql>
42      INSERT INTO [ParameterValues] ([id], [discriminator], [version])
43      VALUES (?, 0)
44    </sql>
45    <description>
46      SQL query for inserting rows into the ParameterValues table.
47      The primary key (id) must be auto-generated.
48      Parameters: discriminator
49    </description>
50  </query>
51
52  <query id="AB_INSERT_INTO_ANNOTATIONS" type="SQL">
53    <sql>
54      INSERT INTO [Annotations] ([version], [annotationset_id], [annotationtype_id], [unit_id], [value_id], [last_update], [source])
55      VALUES (0, ?, ?, ?, ?, ?, 0)
56    </sql>
57    <description>
58      SQL query for inserting rows into the Annotations table.
59      The primary key (id) must be auto-generated.
60      Parameters: annotationset_id, annotationtype_id, unit_id, value_id, last_updated
61    </description>
62  </query>
63 
64  <query id="AB_INSERT_INTO_ANNOTATIONSETS" type="SQL">
65    <sql>
66      INSERT INTO [AnnotationSets] ([version], [item_type], [item_id])
67      VALUES (0, {1}, ?)
68    </sql>
69    <description>
70      SQL query for inserting rows into the AnnotationSets table.
71      The primary key (id) must be auto-generated.
72      Parameters: item_id
73    </description>
74  </query>
75 
76  <query id="DBLOG_INSERT_INTO_CHANGEHISTORYDETAILS" type="SQL">
77    <sql>
78      INSERT INTO [ChangeHistoryDetails]
79        ([version], [history_id], [change_type], [item_id], [item_type], [change_info], [old_value], [new_value])
80      VALUES (0, ?, ?, ?, ?, ?, ?, ?)
81    </sql>
82    <description>
83      SQL query for inserting rows into the ChangeHistoryDetails table.
84      The primary key (id) must be auto-generated.
85      Parameters: history_id, change_type, item_id, item_type, change_info, old_value, new_value
86    </description>
87  </query>
88
89
90</predefined-queries>
Note: See TracBrowser for help on using the repository browser.