Skip to content

Commit 6ba1e48

Browse files
committed
formatting
1 parent a356f8b commit 6ba1e48

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

backend/migrations/versions/abcd1234_add_active_column_to_users.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
Create Date: 2025-07-08
66
"""
77

8-
from alembic import op
98
import sqlalchemy as sa
9+
from alembic import op
1010

11-
revision = 'abcd1234active'
12-
down_revision = 'df571b763807'
11+
revision = "abcd1234active"
12+
down_revision = "df571b763807"
1313
branch_labels = None
1414
depends_on = None
1515

16+
1617
def upgrade():
17-
op.add_column('users', sa.Column('active', sa.Boolean(), nullable=False, server_default=sa.true()))
18+
op.add_column("users", sa.Column("active", sa.Boolean(), nullable=False, server_default=sa.true()))
1819

1920

2021
def downgrade():
21-
op.drop_column('users', 'active')
22+
op.drop_column("users", "active")

0 commit comments

Comments
 (0)