git reimport

This commit is contained in:
2019-03-15 15:02:19 +04:00
commit 742797309a
90 changed files with 4411 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
"""CachedDownload and CachedUpload
Revision ID: 253bd36e1037
Revises: 20e307621653
Create Date: 2018-10-27 02:06:35.782235
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '253bd36e1037'
down_revision = '20e307621653'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('CachedDownload_auto',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('url', sa.String(), nullable=False),
sa.Column('params_json', sa.String(), nullable=False),
sa.Column('local_path', sa.String(), nullable=False),
sa.PrimaryKeyConstraint('id')
)
op.create_table('CachedUpload_auto',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('local_path', sa.String(), nullable=False),
sa.Column('vk_object', sa.String(), nullable=False),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('CachedUpload_auto')
op.drop_table('CachedDownload_auto')
# ### end Alembic commands ###