Skip to content

Commit

Permalink
Merge pull request #873 from Lonnen/stage-795349
Browse files Browse the repository at this point in the history
bug 795349 fix for Fennec
  • Loading branch information
lonnen committed Oct 10, 2012
2 parents f02c190 + 70fff5a commit 8ef3efe
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
19 changes: 19 additions & 0 deletions sql/upgrade/20.0/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.. 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/.
19.0 Database Updates
=====================

This batch makes the following database changes:

bug #790844
Fix product_crash_ratio for analytics team

no bug
Fix performance_check_1 view for ganglia

...

The above changes should take only a few minutes to deploy.
This upgrade does not require a downtime.
7 changes: 7 additions & 0 deletions sql/upgrade/20.0/insert_os_name_matches.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\set ON_ERROR_STOP 1

BEGIN;

INSERT INTO os_name_matches VALUES('Linux', 'Android%');

COMMIT;
22 changes: 22 additions & 0 deletions sql/upgrade/20.0/upgrade.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# 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/.

#please see README

set -e

CURDIR=$(dirname $0)
DBNAME=$1
: ${DBNAME:="breakpad"}
VERSION=20.0

echo '*********************************************************'
echo 'Add Android to known OS names, grouped in Linux'
echo 'bug 795349'
psql -f ${CURDIR}/insert_os_name_matches.sql $DBNAME

echo "$VERSION upgrade done"

exit 0

0 comments on commit 8ef3efe

Please sign in to comment.