1 | -- $Id: tmdb-r20-testcases-1-testgroups-1-schedgroups-1.pgsql 82968 2020-02-04 10:35:17Z vboxsync $
|
---|
2 | --- @file
|
---|
3 | -- VBox Test Manager Database - Adds sComment to TestCases, TestGroups
|
---|
4 | -- and SchedGroups.
|
---|
5 | --
|
---|
6 |
|
---|
7 | --
|
---|
8 | -- Copyright (C) 2013-2020 Oracle Corporation
|
---|
9 | --
|
---|
10 | -- This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | -- available from http://www.virtualbox.org. This file is free software;
|
---|
12 | -- you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | -- General Public License (GPL) as published by the Free Software
|
---|
14 | -- Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | -- VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | -- hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | --
|
---|
18 | -- The contents of this file may alternatively be used under the terms
|
---|
19 | -- of the Common Development and Distribution License Version 1.0
|
---|
20 | -- (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
21 | -- VirtualBox OSE distribution, in which case the provisions of the
|
---|
22 | -- CDDL are applicable instead of those of the GPL.
|
---|
23 | --
|
---|
24 | -- You may elect to license modified versions of this file under the
|
---|
25 | -- terms and conditions of either the GPL or the CDDL or both.
|
---|
26 | --
|
---|
27 |
|
---|
28 |
|
---|
29 |
|
---|
30 | \set ON_ERROR_STOP 1
|
---|
31 | \set AUTOCOMMIT 0
|
---|
32 |
|
---|
33 | LOCK TABLE TestBoxes IN ACCESS EXCLUSIVE MODE;
|
---|
34 | LOCK TABLE TestBoxStatuses IN ACCESS EXCLUSIVE MODE;
|
---|
35 | LOCK TABLE TestCases IN ACCESS EXCLUSIVE MODE;
|
---|
36 | LOCK TABLE TestGroups IN ACCESS EXCLUSIVE MODE;
|
---|
37 | LOCK TABLE SchedGroups IN ACCESS EXCLUSIVE MODE;
|
---|
38 |
|
---|
39 | --
|
---|
40 | -- All the changes are rather simple and we'll just add the sComment column last.
|
---|
41 | --
|
---|
42 | \d TestCases;
|
---|
43 | \d TestGroups;
|
---|
44 | \d SchedGroups;
|
---|
45 |
|
---|
46 | ALTER TABLE TestCases ADD COLUMN sComment TEXT DEFAULT NULL;
|
---|
47 | ALTER TABLE TestGroups ADD COLUMN sComment TEXT DEFAULT NULL;
|
---|
48 | ALTER TABLE SchedGroups ADD COLUMN sComment TEXT DEFAULT NULL;
|
---|
49 |
|
---|
50 | \d TestCases;
|
---|
51 | \d TestGroups;
|
---|
52 | \d SchedGroups;
|
---|
53 |
|
---|
54 | \prompt "Update python files while everything is locked. Hurry!" dummy
|
---|
55 |
|
---|
56 | COMMIT;
|
---|
57 |
|
---|