-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Refactoring:
- Loading branch information
Showing
5 changed files
with
150 additions
and
30 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
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,82 @@ | ||
"""empty message | ||
Revision ID: 8b3cb0ef28e6 | ||
Revises: 1c10a1181f81 | ||
Create Date: 2019-11-01 01:05:21.915115 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '8b3cb0ef28e6' | ||
down_revision = '1c10a1181f81' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('area', 'areaName', | ||
existing_type=mysql.VARCHAR(length=300), | ||
type_=sa.String(length=800), | ||
existing_nullable=False) | ||
op.alter_column('election_candidate', 'qualifiedForPreferences', | ||
existing_type=mysql.TINYINT(display_width=1), | ||
type_=sa.Boolean(), | ||
existing_nullable=False) | ||
op.alter_column('invoice', 'confirmed', | ||
existing_type=mysql.TINYINT(display_width=1), | ||
type_=sa.Boolean(), | ||
existing_nullable=False) | ||
op.alter_column('invoice', 'delete', | ||
existing_type=mysql.TINYINT(display_width=1), | ||
type_=sa.Boolean(), | ||
existing_nullable=True) | ||
op.alter_column('invoice_stationaryItem', 'received', | ||
existing_type=mysql.TINYINT(display_width=1), | ||
type_=sa.Boolean(), | ||
existing_nullable=False) | ||
op.alter_column('proof', 'finished', | ||
existing_type=mysql.TINYINT(display_width=1), | ||
type_=sa.Boolean(), | ||
existing_nullable=True) | ||
op.alter_column('tallySheetVersion', 'isComplete', | ||
existing_type=mysql.TINYINT(display_width=1), | ||
type_=sa.Boolean(), | ||
existing_nullable=False) | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('tallySheetVersion', 'isComplete', | ||
existing_type=sa.Boolean(), | ||
type_=mysql.TINYINT(display_width=1), | ||
existing_nullable=False) | ||
op.alter_column('proof', 'finished', | ||
existing_type=sa.Boolean(), | ||
type_=mysql.TINYINT(display_width=1), | ||
existing_nullable=True) | ||
op.alter_column('invoice_stationaryItem', 'received', | ||
existing_type=sa.Boolean(), | ||
type_=mysql.TINYINT(display_width=1), | ||
existing_nullable=False) | ||
op.alter_column('invoice', 'delete', | ||
existing_type=sa.Boolean(), | ||
type_=mysql.TINYINT(display_width=1), | ||
existing_nullable=True) | ||
op.alter_column('invoice', 'confirmed', | ||
existing_type=sa.Boolean(), | ||
type_=mysql.TINYINT(display_width=1), | ||
existing_nullable=False) | ||
op.alter_column('election_candidate', 'qualifiedForPreferences', | ||
existing_type=sa.Boolean(), | ||
type_=mysql.TINYINT(display_width=1), | ||
existing_nullable=False) | ||
op.alter_column('area', 'areaName', | ||
existing_type=sa.String(length=800), | ||
type_=mysql.VARCHAR(length=300), | ||
existing_nullable=False) | ||
### end Alembic commands ### |
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