mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 23:51:13 +01:00
38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 2779eb90c6c4
|
||
|
Revises: 1b54995bc086
|
||
|
Create Date: 2021-01-25 18:45:29.910152
|
||
|
|
||
|
"""
|
||
|
import sqlalchemy_utils
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '2779eb90c6c4'
|
||
|
down_revision = '1b54995bc086'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.create_table('metric',
|
||
|
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
|
||
|
sa.Column('created_at', sqlalchemy_utils.types.arrow.ArrowType(), nullable=False),
|
||
|
sa.Column('updated_at', sqlalchemy_utils.types.arrow.ArrowType(), nullable=True),
|
||
|
sa.Column('date', sqlalchemy_utils.types.arrow.ArrowType(), nullable=False),
|
||
|
sa.Column('name', sa.String(length=256), nullable=False),
|
||
|
sa.Column('value', sa.Float(), nullable=False),
|
||
|
sa.PrimaryKeyConstraint('id')
|
||
|
)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_table('metric')
|
||
|
# ### end Alembic commands ###
|