Add linters configs

This commit is contained in:
2022-01-01 20:13:14 +03:00
parent 3b54f80892
commit 19f6ed111b
18 changed files with 911 additions and 78 deletions

View File

@@ -10,7 +10,7 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9b7cfb422191'
revision = "9b7cfb422191"
down_revision = None
branch_labels = None
depends_on = None
@@ -18,18 +18,21 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('cached_files',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('object_id', sa.Integer(), nullable=False),
sa.Column('object_type', sa.String(length=8), nullable=False),
sa.Column('data', sa.JSON(), nullable=False),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('object_id', 'object_type', name='uc_cached_files_object_id_object_type')
op.create_table(
"cached_files",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("object_id", sa.Integer(), nullable=False),
sa.Column("object_type", sa.String(length=8), nullable=False),
sa.Column("data", sa.JSON(), nullable=False),
sa.PrimaryKeyConstraint("id"),
sa.UniqueConstraint(
"object_id", "object_type", name="uc_cached_files_object_id_object_type"
),
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('cached_files')
op.drop_table("cached_files")
# ### end Alembic commands ###