Skip to content

Commit

Permalink
Add migration for camino shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
selenamarie authored and lonnen committed Jul 3, 2013
1 parent 4cfddfa commit ea311ee
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions alembic/versions/54e898dc3251_bug_878109_shut_cami.py
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

0 comments on commit ea311ee

Please sign in to comment.