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 855423 Change all RAISE ERROR -> NOTICE in stored procs
* Add alembic migration (yay!) * Fix a test that no longer needs to expect an exception * Add OR REPLACE to CREATE FUNCTION
- Loading branch information
1 parent
5ac6f6d
commit 53fcbaf
Showing
111 changed files
with
252 additions
and
223 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,54 @@ | ||
"""bug 855423 change RAISE EXCEPTION to RAISE NOTICE | ||
Revision ID: 5e14d46c725 | ||
Revises: e5eb3c07f2a | ||
Create Date: 2013-04-11 17:35:34.174009 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '5e14d46c725' | ||
down_revision = None | ||
|
||
from alembic import op | ||
import os | ||
|
||
def upgrade(): | ||
# Load up all the new procedures | ||
app_path=os.getcwd() | ||
procs = [ | ||
'001_update_reports_clean.sql', | ||
'add_column_if_not_exists.sql', | ||
'add_new_product.sql', | ||
'add_new_release.sql', | ||
'backfill_matviews.sql', | ||
'crontabber_nodelete.sql', | ||
'drop_old_partitions.sql', | ||
'edit_featured_versions.sql', | ||
'edit_product_info.sql', | ||
'update_adu.sql', | ||
'update_build_adu.sql', | ||
'update_correlations.sql', | ||
'update_crashes_by_user_build.sql', | ||
'update_crashes_by_user.sql', | ||
'update_daily_crashes.sql', | ||
'update_explosiveness.sql', | ||
'update_hang_report.sql', | ||
'update_home_page_graph_build.sql', | ||
'update_home_page_graph.sql', | ||
'update_nightly_builds.sql', | ||
'update_os_versions.sql', | ||
'update_rank_compare.sql', | ||
'update_signatures.sql', | ||
'update_tcbs_build.sql', | ||
'update_tcbs.sql', | ||
'validate_lookup.sql' | ||
] | ||
for myfile in [app_path + '/socorro/external/postgresql/raw_sql/procs/' + line for line in procs]: | ||
proc = open(myfile, 'r').read() | ||
op.execute(proc) | ||
|
||
def downgrade(): | ||
# Tricky. Need to checkout previous revision in repo | ||
# to do this, so leaving for now. | ||
return True |
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/002_version_sort_digit.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/003_major_version_sort.sql
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
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
5 changes: 3 additions & 2 deletions
5
socorro/external/postgresql/raw_sql/procs/add_new_product.sql
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
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/aurora_or_nightly.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_all_dups.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_build_adu.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_correlations.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_crashes_by_user.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_crashes_by_user_build.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_daily_crashes.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_explosiveness.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_hang_report.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_home_page_graph.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_home_page_graph_build.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_nightly_builds.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_rank_compare.sql
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
2 changes: 1 addition & 1 deletion
2
socorro/external/postgresql/raw_sql/procs/backfill_reports_clean.sql
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
Oops, something went wrong.