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.
- Loading branch information
1 parent
4cfddfa
commit ea311ee
Showing
1 changed file
with
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""bug 878109 shut camino down | ||
Revision ID: 54e898dc3251 | ||
Revises: 471c6efadde | ||
Create Date: 2013-07-03 09:21:07.627571 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '54e898dc3251' | ||
down_revision = '471c6efadde' | ||
|
||
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 = [ '001_update_reports_clean.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(): | ||
### Nothing to do here | ||
pass |