powermeter/migrations/versions/925f94e2acd6_.py
Finn Christiansen c554194fb5
All checks were successful
/ Python-PEP8 (push) Successful in 12s
💚 Fix PEP8 warnings
2024-10-11 22:31:28 +02:00

33 lines
857 B
Python

"""empty message
Revision ID: 925f94e2acd6
Revises:
Create Date: 2021-01-23 21:09:25.068512
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '925f94e2acd6'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('impulse',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('power', sa.Integer(), nullable=False),
sa.Column('created_at', sa.DateTime(), nullable=False),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('impulse')
# ### end Alembic commands ###