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.
Merge pull request mozilla-services#1309 from selenamarie/bug886917-g…
…c-in-tcbs_build bug 886917 update tcbs_build for is_gc_count
- Loading branch information
Showing
2 changed files
with
54 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 886917 Add is_gc_count to tcbs_build report | ||
Revision ID: 4d4b48f86d4b | ||
Revises: 2b285e76f71d | ||
Create Date: 2013-06-25 11:29:22.679634 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '4d4b48f86d4b' | ||
down_revision = '2b285e76f71d' | ||
|
||
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_tcbs_build.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(): | ||
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