mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(pre-commit): include migrations in fixes/checks
We want all python files related to the project to be checked, really. Some of which are still included, but migrations are a core part of FastAPI aurweb and should be included. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
03776c4663
commit
b3853e01b8
6 changed files with 44 additions and 46 deletions
|
@ -19,8 +19,8 @@ from alembic import op
|
|||
from sqlalchemy.dialects.mysql import INTEGER, TINYINT
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'be7adae47ac3'
|
||||
down_revision = '56e2ce8e2ffa'
|
||||
revision = "be7adae47ac3"
|
||||
down_revision = "56e2ce8e2ffa"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
@ -32,7 +32,7 @@ DOWNGRADE_T = TINYINT(3, unsigned=True)
|
|||
|
||||
|
||||
def upgrade():
|
||||
""" Upgrade 'Yes', 'No', 'Abstain' and 'ActiveTUs' to unsigned INTEGER. """
|
||||
"""Upgrade 'Yes', 'No', 'Abstain' and 'ActiveTUs' to unsigned INTEGER."""
|
||||
op.alter_column("TU_VoteInfo", "Yes", type_=UPGRADE_T)
|
||||
op.alter_column("TU_VoteInfo", "No", type_=UPGRADE_T)
|
||||
op.alter_column("TU_VoteInfo", "Abstain", type_=UPGRADE_T)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue