2022-01-17 00:49:28 +00:00
|
|
|
"""items-reports
|
2022-01-16 18:22:00 +00:00
|
|
|
|
2022-01-17 00:49:28 +00:00
|
|
|
Revision ID: 3da561e7f7c0
|
2022-01-16 18:22:00 +00:00
|
|
|
Revises: 8a2966b9f7ee
|
2022-01-17 00:49:28 +00:00
|
|
|
Create Date: 2022-01-16 18:27:11.067205
|
2022-01-16 18:22:00 +00:00
|
|
|
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
2022-01-17 00:49:28 +00:00
|
|
|
|
2022-01-16 18:22:00 +00:00
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
2022-01-17 00:49:28 +00:00
|
|
|
revision = '3da561e7f7c0'
|
2022-01-16 18:22:00 +00:00
|
|
|
down_revision = '8a2966b9f7ee'
|
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
op.create_table('item_reports',
|
2022-01-17 00:49:28 +00:00
|
|
|
sa.Column('data', sa.JSON(), nullable=False),
|
|
|
|
sa.Column('date', sa.Date(), autoincrement=False, nullable=False),
|
|
|
|
sa.PrimaryKeyConstraint('date')
|
2022-01-16 18:22:00 +00:00
|
|
|
)
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
op.drop_table('item_reports')
|
|
|
|
# ### end Alembic commands ###
|