-
Notifications
You must be signed in to change notification settings - Fork 219
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 #1817 from selenamarie/bug963233-add-version_build…
…-column Fixes bug 963233 - add version_build to tables
- Loading branch information
Showing
3 changed files
with
36 additions
and
2 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 @@ | ||
"""Add version_build column | ||
Revision ID: 4bb277899d74 | ||
Revises: 355d0795af7f | ||
Create Date: 2014-01-23 15:37:08.692426 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '4bb277899d74' | ||
down_revision = '355d0795af7f' | ||
|
||
from alembic import op | ||
from socorro.lib import citexttype, jsontype, buildtype | ||
from socorro.lib.migrations import fix_permissions, load_stored_proc | ||
|
||
import sqlalchemy as sa | ||
from sqlalchemy import types | ||
from sqlalchemy.dialects import postgresql | ||
from sqlalchemy.sql import table, column | ||
|
||
|
||
def upgrade(): | ||
op.add_column(u'product_versions', sa.Column(u'version_build', sa.TEXT(), nullable=True)) | ||
op.add_column(u'releases_raw', sa.Column(u'version_build', sa.TEXT(), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column(u'releases_raw', u'version_build') | ||
op.drop_column(u'product_versions', u'version_build') |
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