I'm trying to run a migration with alembic (add a column) but it taking too long - and never ends. The table has 100 rows and i don't see an error.
This is my migration code in python
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd6fe1dec4bcd'
down_revision = '3f532791c5f3'
branch_labels = None
depends_on = None
def upgrade() -> None:
op.add_column('products2', sa.Column(
'product_status', sa.String(255)))
def downgrade() -> None:
op.drop_column('products2', 'product_status')
This is what i see in postgres when I check
SELECT * FROM pg_stat_activity WHERE state = 'active';
ALTER TABLE products2 ADD COLUMN product_status VARCHAR(255)
This is what I see in terminal
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
INFO [alembic.runtime.migration] Running upgrade 3f532791c5f3 -> d6fe1dec4bcd, create product status column
How can I fix this? I'm running the postgres in a Google Cloud COnsole, but i don`t see any error on their platform