powermeter/migrations/versions/925f94e2acd6_.py

34 lines
857 B
Python
Raw Permalink Normal View History

2021-01-24 13:58:29 +01:00
"""empty message
Revision ID: 925f94e2acd6
2024-10-11 22:31:28 +02:00
Revises:
2021-01-24 13:58:29 +01:00
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',
2024-10-11 22:31:28 +02:00
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')
)
2021-01-24 13:58:29 +01:00
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('impulse')
# ### end Alembic commands ###