Publish first version
This commit is contained in:
parent
e167769041
commit
bac59704db
18 changed files with 564 additions and 1 deletions
33
migrations/versions/925f94e2acd6_.py
Normal file
33
migrations/versions/925f94e2acd6_.py
Normal file
|
@ -0,0 +1,33 @@
|
|||
"""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 ###
|
Loading…
Add table
Add a link
Reference in a new issue