-
Notifications
You must be signed in to change notification settings - Fork 22
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 #33 from fedora-infra/feature/stls
Add a column to optionally associate stls with a badge.
- Loading branch information
Showing
2 changed files
with
25 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,24 @@ | ||
"""Add an stl column for badges. | ||
Revision ID: 508367dcbbb5 | ||
Revises: 2879ed5a6297 | ||
Create Date: 2014-07-11 09:36:33.211281 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '508367dcbbb5' | ||
down_revision = '2879ed5a6297' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('badges', sa.Column('stl', sa.Unicode(128))) | ||
|
||
|
||
def downgrade(): | ||
# Downgrade will fail if using SQLite. The transaction will | ||
# be rolled back as per env.py. | ||
op.drop_column('badges', 'stl') |
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