Skip to content

Commit

Permalink
bug 1140937 - Change missing symbols cron to include filename and cod…
Browse files Browse the repository at this point in the history
…e_id (mozilla-services#3358)

r=adngdb
  • Loading branch information
Peter Bengtsson authored and adngdb committed Jun 2, 2016
1 parent 8bbdc35 commit bfce787
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions alembic/versions/89ef86a3d57a_extend_missing_symbols.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
"""extend missing symbols
Revision ID: 89ef86a3d57a
Revises: 02da1335e26e
Create Date: 2016-05-26 13:17:17.145484
"""

from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = '89ef86a3d57a'
down_revision = '02da1335e26e'


def upgrade():
op.add_column(
'missing_symbols',
sa.Column(
'code_file',
sa.TEXT(),
nullable=True,
)
)
op.add_column(
'missing_symbols',
sa.Column(
'code_id',
sa.TEXT(),
nullable=True,
)
)


def downgrade():
op.drop_column('missing_symbols', 'code_file')
op.drop_column('missing_symbols', 'code_id')
2 changes: 2 additions & 0 deletions socorro/external/postgresql/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,8 @@ class MissingSymbols(DeclarativeBase):
date_processed = Column(u'date_processed', DATE(), nullable=False)
debug_file = Column(u'debug_file', TEXT(), nullable=True)
debug_id = Column(u'debug_id', TEXT(), nullable=True)
code_file = Column(u'code_file', TEXT(), nullable=True)
code_id = Column(u'code_id', TEXT(), nullable=True)

__mapper_args__ = {'primary_key': (date_processed, debug_file, debug_id)}

Expand Down

0 comments on commit bfce787

Please sign in to comment.