Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed last dependent of utils.state
- Loading branch information
Showing
7 changed files
with
66 additions
and
16 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,31 @@ | ||
"""create_sno_series_table | ||
Revision ID: 205d6ab2febf | ||
Revises: 1f03af77d718 | ||
Create Date: 2015-09-25 10:55:07.669159 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '205d6ab2febf' | ||
down_revision = '1f03af77d718' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.create_table( | ||
'SerialNumberSeries', | ||
sa.Column('id', sa.Integer, primary_key=True), | ||
sa.Column('series', sa.String, nullable=False, unique=True), | ||
sa.Column('last_seed', sa.String, nullable=False, unique=False) | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.drop_Table( | ||
'SerialNumberSeries' | ||
) |
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
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
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