forked from mozilla-services/socorro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug 773332 Add FlashProcessDump to reports and reports_clean
* New SQL script and update README and upgrade.sh for new bug
- Loading branch information
1 parent
fd8bd42
commit 7d7d26b
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
-- This Source Code Form is subject to the terms of the Mozilla Public | ||
-- License, v. 2.0. If a copy of the MPL was not distributed with this | ||
-- file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
\set ON_ERROR_STOP on | ||
|
||
DO $f$ | ||
BEGIN | ||
|
||
PERFORM 1 FROM information_schema.columns | ||
WHERE table_name = 'reports' | ||
AND column_name = 'flash_process_dump'; | ||
|
||
|
||
IF NOT FOUND THEN | ||
ALTER TABLE reports ADD COLUMN flash_process_dump text; | ||
END IF; | ||
|
||
PERFORM 1 FROM information_schema.columns | ||
WHERE table_name = 'reports_clean' | ||
AND column_name = 'flash_process_dump'; | ||
|
||
IF NOT FOUND THEN | ||
CREATE TYPE flash_process_dump_type AS ENUM ('Sandbox', 'Broker'); | ||
ALTER TABLE reports_clean ADD COLUMN flash_process_dump flash_process_dump_type; | ||
END IF; | ||
|
||
END; | ||
$f$; | ||
|
||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters