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 880378 make ADU throw exceptions
- Loading branch information
1 parent
32e15fa
commit 35c7d51
Showing
3 changed files
with
35 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""bug 880378 make update_adu throw exceptions | ||
Revision ID: 2cbb29fc9b77 | ||
Revises: 2b285e76f71d | ||
Create Date: 2013-06-28 15:09:38.750774 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '2cbb29fc9b77' | ||
down_revision = '4d4b48f86d4b' | ||
|
||
import os | ||
import sqlalchemy as sa | ||
from alembic import op | ||
from sqlalchemy.dialects import postgresql | ||
from sqlalchemy import types | ||
from sqlalchemy.sql import table, column | ||
|
||
def upgrade(): | ||
app_path=os.getcwd() | ||
procs = [ | ||
'update_adu.sql' | ||
, 'update_build_adu.sql' | ||
] | ||
for myfile in [app_path + '/socorro/external/postgresql/raw_sql/procs/' + line for line in procs]: | ||
with open(myfile, 'r') as file: | ||
op.execute(file.read()) | ||
|
||
def downgrade(): | ||
# No automated backout | ||
pass |
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