bensin_site/migrations/versions/46b4c05512b3_.py

37 lines
928 B
Python

"""empty message
Revision ID: 46b4c05512b3
Revises:
Create Date: 2017-08-22 13:25:11.487648
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '46b4c05512b3'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('gas',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('price', sa.Integer(), nullable=True),
sa.Column('volume', sa.Integer(), nullable=True),
sa.Column('milage', sa.Integer(), nullable=True),
sa.Column('date', sa.DateTime(), nullable=True),
sa.Column('winterTyre', sa.Boolean(), nullable=True),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('gas')
# ### end Alembic commands ###