SlimG commited on
Commit
87132b2
·
1 Parent(s): 5b1fb1c

modify migration script to update views from all schemas

Browse files
alembic/versions/9f4f9ff24810_modify_match_date_type.py CHANGED
@@ -26,7 +26,6 @@ def upgrade() -> None:
26
  views = conn.execute(sa.text("""
27
  SELECT schemaname, matviewname
28
  FROM pg_matviews
29
- WHERE schemaname = 'data'
30
  """)).fetchall()
31
 
32
  # Step 2 - For each view, get the definition and indexes
@@ -93,7 +92,6 @@ def downgrade() -> None:
93
  views = conn.execute(sa.text("""
94
  SELECT schemaname, matviewname
95
  FROM pg_matviews
96
- WHERE schemaname = 'data'
97
  """)).fetchall()
98
 
99
  # Step 2 - For each view, get the definition and indexes
 
26
  views = conn.execute(sa.text("""
27
  SELECT schemaname, matviewname
28
  FROM pg_matviews
 
29
  """)).fetchall()
30
 
31
  # Step 2 - For each view, get the definition and indexes
 
92
  views = conn.execute(sa.text("""
93
  SELECT schemaname, matviewname
94
  FROM pg_matviews
 
95
  """)).fetchall()
96
 
97
  # Step 2 - For each view, get the definition and indexes